Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6496599

Browse filesBrowse 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
Copy full SHA for 6496599

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎templates/jobs/job_detail.html

Copy file name to clipboardExpand all lines: templates/jobs/job_detail.html
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.