@@ -1,6 +1,6 @@
11{% extends "oscar/base.html" %}
2−{% block title %}{{ q }} - {% endblock %}
3−{% block meta %}<link rel="alternate" type="application/rss+xml" title="Searx search: {{ q }}" href="{{ url_for('index') }}?q={{ q|urlencode }}&format=rss&{% for category in selected_categories %}category_{{ category }}=1&{% endfor %}pageno={{ pageno }}&time_range={{ time_range }}">{% endblock %}
2+{% block title %}{{ q|e }} - {% endblock %}
3+{% block meta %}<link rel="alternate" type="application/rss+xml" title="Searx search: {{ q|e }}" href="{{ url_for('index') }}?q={{ q|urlencode }}&format=rss&{% for category in selected_categories %}category_{{ category }}=1&{% endfor %}pageno={{ pageno }}&time_range={{ time_range }}">{% endblock %}
44{% block content %}
55 <div class="row">
66 <div class="col-sm-8" id="main_results">
@@ -37,9 +37,9 @@
3737 <div id="pagination">
3838 <div class="pull-left">
3939 <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" class="pull-left">
40− <input type="hidden" name="q" value="{{ q }}" />
40+ <input type="hidden" name="q" value="{{ q|e }}" />
4141 {% for category in selected_categories %}<input type="hidden" name="category_{{ category }}" value="1"/>{% endfor %}
42− <input type="hidden" name="q" value="{{ q }}" />
42+ <input type="hidden" name="q" value="{{ q|e }}" />
4343 <input type="hidden" name="pageno" value="{{ pageno+1 }}" />
4444 <input type="hidden" name="time_range" value="{{ time_range }}" />
4545 <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-backward"></span> {{ _('next page') }}</button>
@@ -59,7 +59,7 @@
5959 <div id="pagination">
6060 <div class="pull-left">
6161 <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" class="pull-left">
62− <input type="hidden" name="q" value="{{ q }}" />
62+ <input type="hidden" name="q" value="{{ q|e }}" />
6363 {% for category in selected_categories %}<input type="hidden" name="category_{{ category }}" value="1"/>{% endfor %}
6464 <input type="hidden" name="pageno" value="{{ pageno-1 }}" />
6565 <input type="hidden" name="time_range" value="{{ time_range }}" />
@@ -69,7 +69,7 @@
6969 <div class="pull-right">
7070 <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" class="pull-left">
7171 {% for category in selected_categories %}<input type="hidden" name="category_{{ category }}" value="1"/>{% endfor %}
72− <input type="hidden" name="q" value="{{ q }}" />
72+ <input type="hidden" name="q" value="{{ q|e }}" />
7373 <input type="hidden" name="pageno" value="{{ pageno+1 }}" />
7474 <input type="hidden" name="time_range" value="{{ time_range }}" />
7575 <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-forward"></span> {{ _('next page') }}</button>
@@ -130,7 +130,7 @@
130130 <div class="clearfix"></div>
131131 {% for output_type in ('csv', 'json', 'rss') %}
132132 <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" class="form-inline pull-{% if rtl %}right{% else %}left{% endif %} result_download">
133− <input type="hidden" name="q" value="{{ q }}">
133+ <input type="hidden" name="q" value="{{ q|e }}">
134134 <input type="hidden" name="format" value="{{ output_type }}">
135135 {% for category in selected_categories %}<input type="hidden" name="category_{{ category }}" value="1">{% endfor %}
136136 <input type="hidden" name="pageno" value="{{ pageno }}">