Skip to content

Commit 6496599

Browse files
committed
Fix HTML leak in job_detail
Use `striptags` to strip all html from `og:description`, which was causing HTML to leak. Resolves #2307
1 parent 4e2bd04 commit 6496599

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/jobs/job_detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{% block content_attributes %}with-right-sidebar{% endblock %}
99

1010
{% block og_title %}Job: {{ object.job_title }} at {{ object.company_name }}{% endblock %}
11-
{% block og-descript %}{{ object.description|escape|truncatechars:200 }}{% endblock %}
11+
{% block og-descript %}{{ object.description|striptags|truncatechars:200 }}{% endblock %}
1212

1313
{% block content %}
1414
{% load companies %}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy