Skip to content

Commit

Permalink
Mark search query as safe on Prev/Next button (#731)
Browse files Browse the repository at this point in the history
Fixes: #677 again. Complement to #686.
  • Loading branch information
wsy2220 committed Feb 26, 2023
1 parent 58fa213 commit 0b39d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/search.html
Expand Up @@ -99,13 +99,13 @@
{% if params.typed != "sr_user" %}
<footer>
{% if params.before != "" %}
<a href="?q={{ params.q }}&restrict_sr={{ params.restrict_sr }}
<a href="?q={{ params.q|safe }}&restrict_sr={{ params.restrict_sr }}
&sort={{ params.sort }}&t={{ params.t }}
&before={{ params.before }}" accesskey="P">PREV</a>
{% endif %}

{% if params.after != "" %}
<a href="?q={{ params.q }}&restrict_sr={{ params.restrict_sr }}
<a href="?q={{ params.q|safe }}&restrict_sr={{ params.restrict_sr }}
&sort={{ params.sort }}&t={{ params.t }}
&after={{ params.after }}" accesskey="N">NEXT</a>
{% endif %}
Expand Down

0 comments on commit 0b39d4f

Please sign in to comment.