[fix] proper escaping of the search query in templates
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% extends "pix-art/base.html" %}
|
||||
{% block title %}{{ q }} - {% endblock %}
|
||||
{% block title %}{{ q|e }} - {% endblock %}
|
||||
{% block meta %}{% endblock %}
|
||||
{% block content %}
|
||||
<div id="logo"><a href="./"><img src="{{ url_for('static', filename='img/searx-pixel-small.png') }}" alt="searx Logo"/></a></div>
|
||||
@@ -25,8 +25,8 @@
|
||||
</span>
|
||||
<div id="pagination">
|
||||
<br />
|
||||
<input type="button" onclick="load_more('{{ q }}', {{ pageno+1 }})" id="load_more" value="{{ _('Load more...') }}" />
|
||||
<input type="button" onclick="load_more('{{ q|e }}', {{ pageno+1 }})" id="load_more" value="{{ _('Load more...') }}" />
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user