@@ -1,6 +1,6 @@
1{% extends "oscar/base.html" %}
1{% extends "oscar/base.html" %}
2−{% block title %}{{ q }} - {% endblock %}
2+{% block title %}{{ q|e }} - {% 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 %}
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 %}
4{% block content %}
4{% block content %}
5 <div class="row">
5 <div class="row">
6 <div class="col-sm-8" id="main_results">
6 <div class="col-sm-8" id="main_results">
@@ -37,9 +37,9 @@
37 <div id="pagination">
37 <div id="pagination">
38 <div class="pull-left">
38 <div class="pull-left">
39 <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" class="pull-left">
39 <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 }}" />
41 {% for category in selected_categories %}<input type="hidden" name="category_{{ category }}" value="1"/>{% endfor %}
41 {% 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 }}" />
43 <input type="hidden" name="pageno" value="{{ pageno+1 }}" />
43 <input type="hidden" name="pageno" value="{{ pageno+1 }}" />
44 <input type="hidden" name="time_range" value="{{ time_range }}" />
44 <input type="hidden" name="time_range" value="{{ time_range }}" />
45 <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-backward"></span> {{ _('next page') }}</button>
45 <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-backward"></span> {{ _('next page') }}</button>
@@ -59,7 +59,7 @@
59 <div id="pagination">
59 <div id="pagination">
60 <div class="pull-left">
60 <div class="pull-left">
61 <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" class="pull-left">
61 <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 }}" />
63 {% for category in selected_categories %}<input type="hidden" name="category_{{ category }}" value="1"/>{% endfor %}
63 {% for category in selected_categories %}<input type="hidden" name="category_{{ category }}" value="1"/>{% endfor %}
64 <input type="hidden" name="pageno" value="{{ pageno-1 }}" />
64 <input type="hidden" name="pageno" value="{{ pageno-1 }}" />
65 <input type="hidden" name="time_range" value="{{ time_range }}" />
65 <input type="hidden" name="time_range" value="{{ time_range }}" />
@@ -69,7 +69,7 @@
69 <div class="pull-right">
69 <div class="pull-right">
70 <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" class="pull-left">
70 <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" class="pull-left">
71 {% for category in selected_categories %}<input type="hidden" name="category_{{ category }}" value="1"/>{% endfor %}
71 {% 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 }}" />
73 <input type="hidden" name="pageno" value="{{ pageno+1 }}" />
73 <input type="hidden" name="pageno" value="{{ pageno+1 }}" />
74 <input type="hidden" name="time_range" value="{{ time_range }}" />
74 <input type="hidden" name="time_range" value="{{ time_range }}" />
75 <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-forward"></span> {{ _('next page') }}</button>
75 <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-forward"></span> {{ _('next page') }}</button>
@@ -130,7 +130,7 @@
130 <div class="clearfix"></div>
130 <div class="clearfix"></div>
131 {% for output_type in ('csv', 'json', 'rss') %}
131 {% for output_type in ('csv', 'json', 'rss') %}
132 <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" class="form-inline pull-{% if rtl %}right{% else %}left{% endif %} result_download">
132 <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 }}">
134 <input type="hidden" name="format" value="{{ output_type }}">
134 <input type="hidden" name="format" value="{{ output_type }}">
135 {% for category in selected_categories %}<input type="hidden" name="category_{{ category }}" value="1">{% endfor %}
135 {% for category in selected_categories %}<input type="hidden" name="category_{{ category }}" value="1">{% endfor %}
136 <input type="hidden" name="pageno" value="{{ pageno }}">
136 <input type="hidden" name="pageno" value="{{ pageno }}">