Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit6496599

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 parent4e2bd04 commit6496599

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)

[8]ページ先頭

©2009-2025 Movatter.jp