修复xss的问题,使用a标签代替js跳转
This commit is contained in:
@@ -77,10 +77,9 @@
|
||||
</div>
|
||||
<ul class="list-group">
|
||||
{% for item in tags %}
|
||||
<li class="list-group-item problem-tag"
|
||||
onclick="location.href='/problems/?tag={{ item.name }}'">
|
||||
<span class="badge">{{ item.problem_number }}</span>
|
||||
{{ item.name }}
|
||||
<li class="list-group-item problem-tag">
|
||||
<a href="/problems/?tag={{ item.name }}">{{ item.name }}</a>
|
||||
<span class="badge">{{ item.problem_number }}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user