mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-09-21 00:13:18 +00:00
修复xss的问题,使用a标签代替js跳转
This commit is contained in:
parent
17131e8085
commit
20b51b70c3
@ -127,4 +127,11 @@ li.problem-tag {
|
||||
|
||||
#tfa-area{
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
li.list-group-item>a{
|
||||
display: inline;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user