Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
searx-engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
searx-engine
Commits
28f12ef5
Commit
28f12ef5
authored
Dec 04, 2016
by
Adam Tauber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] proper escaping of the search query in templates
parent
7986d4cf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
20 deletions
+20
-20
results.html
searx/templates/courgette/results.html
+5
-5
results.html
searx/templates/legacy/results.html
+5
-5
results.html
searx/templates/oscar/results.html
+7
-7
results.html
searx/templates/pix-art/results.html
+3
-3
No files found.
searx/templates/courgette/results.html
View file @
28f12ef5
{% extends "courgette/base.html" %}
{% block title %}{{ q }} - {% endblock %}
{% 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 }}"
>
{% endblock %}
{% block title %}{{ q
|e
}} - {% endblock %}
{% 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 }}"
>
{% endblock %}
{% block content %}
<div
class=
"right"
><a
href=
"{{ url_for('preferences') }}"
id=
"preferences"
><span>
{{ _('preferences') }}
</span></a></div>
<div
class=
"small search center"
>
...
...
@@ -17,7 +17,7 @@
{% for output_type in ('csv', 'json', 'rss') %}
<form
method=
"{{ method or 'POST' }}"
action=
"{{ url_for('index') }}"
>
<div
class=
"left"
>
<input
type=
"hidden"
name=
"q"
value=
"{{ q }}"
/>
<input
type=
"hidden"
name=
"q"
value=
"{{ q
|e
}}"
/>
<input
type=
"hidden"
name=
"format"
value=
"{{ output_type }}"
/>
{% for category in selected_categories %}
<input
type=
"hidden"
name=
"category_{{ category }}"
value=
"1"
/>
...
...
@@ -62,7 +62,7 @@
{% if pageno > 1 %}
<form
method=
"{{ method or 'POST' }}"
action=
"{{ url_for('index') }}"
>
<div
class=
"left"
>
<input
type=
"hidden"
name=
"q"
value=
"{{ q }}"
/>
<input
type=
"hidden"
name=
"q"
value=
"{{ q
|e
}}"
/>
{% for category in selected_categories %}
<input
type=
"hidden"
name=
"category_{{ category }}"
value=
"1"
/>
{% endfor %}
...
...
@@ -76,7 +76,7 @@
{% for category in selected_categories %}
<input
type=
"hidden"
name=
"category_{{ category }}"
value=
"1"
/>
{% endfor %}
<input
type=
"hidden"
name=
"q"
value=
"{{ q }}"
/>
<input
type=
"hidden"
name=
"q"
value=
"{{ q
|e
}}"
/>
<input
type=
"hidden"
name=
"pageno"
value=
"{{ pageno+1 }}"
/>
<input
type=
"submit"
value=
"{{ _('next page') }} >>"
/>
</div>
...
...
searx/templates/legacy/results.html
View file @
28f12ef5
{% extends "legacy/base.html" %}
{% block title %}{{ q }} - {% endblock %}
{% 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 }}"
>
{% endblock %}
{% block title %}{{ q
|e
}} - {% endblock %}
{% 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 }}"
>
{% endblock %}
{% block content %}
<div
class=
"preferences_container right"
><a
href=
"{{ url_for('preferences') }}"
id=
"preferences"
><span>
preferences
</span></a></div>
<div
class=
"small search center"
>
...
...
@@ -18,7 +18,7 @@
{% for output_type in ('csv', 'json', 'rss') %}
<form
method=
"{{ method or 'POST' }}"
action=
"{{ url_for('index') }}"
>
<div
class=
"left"
>
<input
type=
"hidden"
name=
"q"
value=
"{{ q }}"
/>
<input
type=
"hidden"
name=
"q"
value=
"{{ q
|e
}}"
/>
<input
type=
"hidden"
name=
"format"
value=
"{{ output_type }}"
/>
{% for category in selected_categories %}
<input
type=
"hidden"
name=
"category_{{ category }}"
value=
"1"
/>
...
...
@@ -73,7 +73,7 @@
{% if pageno > 1 %}
<form
method=
"{{ method or 'POST' }}"
action=
"{{ url_for('index') }}"
>
<div
class=
"{% if rtl %}right{% else %}left{% endif %}"
>
<input
type=
"hidden"
name=
"q"
value=
"{{ q }}"
/>
<input
type=
"hidden"
name=
"q"
value=
"{{ q
|e
}}"
/>
{% for category in selected_categories %}
<input
type=
"hidden"
name=
"category_{{ category }}"
value=
"1"
/>
{% endfor %}
...
...
@@ -87,7 +87,7 @@
{% for category in selected_categories %}
<input
type=
"hidden"
name=
"category_{{ category }}"
value=
"1"
/>
{% endfor %}
<input
type=
"hidden"
name=
"q"
value=
"{{ q }}"
/>
<input
type=
"hidden"
name=
"q"
value=
"{{ q
|e
}}"
/>
<input
type=
"hidden"
name=
"pageno"
value=
"{{ pageno+1 }}"
/>
<input
type=
"submit"
value=
"{{ _('next page') }} >>"
/>
</div>
...
...
searx/templates/oscar/results.html
View file @
28f12ef5
{% extends "oscar/base.html" %}
{% block title %}{{ q }} - {% endblock %}
{% 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 %}
{% block title %}{{ q
|e
}} - {% endblock %}
{% 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 %}
{% block content %}
<div
class=
"row"
>
<div
class=
"col-sm-8"
id=
"main_results"
>
...
...
@@ -37,9 +37,9 @@
<div
id=
"pagination"
>
<div
class=
"pull-left"
>
<form
method=
"{{ method or 'POST' }}"
action=
"{{ url_for('index') }}"
class=
"pull-left"
>
<input
type=
"hidden"
name=
"q"
value=
"{{ q }}"
/>
<input
type=
"hidden"
name=
"q"
value=
"{{ q
|e
}}"
/>
{% for category in selected_categories %}
<input
type=
"hidden"
name=
"category_{{ category }}"
value=
"1"
/>
{% endfor %}
<input
type=
"hidden"
name=
"q"
value=
"{{ q }}"
/>
<input
type=
"hidden"
name=
"q"
value=
"{{ q
|e
}}"
/>
<input
type=
"hidden"
name=
"pageno"
value=
"{{ pageno+1 }}"
/>
<input
type=
"hidden"
name=
"time_range"
value=
"{{ time_range }}"
/>
<button
type=
"submit"
class=
"btn btn-default"
><span
class=
"glyphicon glyphicon-backward"
></span>
{{ _('next page') }}
</button>
...
...
@@ -59,7 +59,7 @@
<div
id=
"pagination"
>
<div
class=
"pull-left"
>
<form
method=
"{{ method or 'POST' }}"
action=
"{{ url_for('index') }}"
class=
"pull-left"
>
<input
type=
"hidden"
name=
"q"
value=
"{{ q }}"
/>
<input
type=
"hidden"
name=
"q"
value=
"{{ q
|e
}}"
/>
{% for category in selected_categories %}
<input
type=
"hidden"
name=
"category_{{ category }}"
value=
"1"
/>
{% endfor %}
<input
type=
"hidden"
name=
"pageno"
value=
"{{ pageno-1 }}"
/>
<input
type=
"hidden"
name=
"time_range"
value=
"{{ time_range }}"
/>
...
...
@@ -69,7 +69,7 @@
<div
class=
"pull-right"
>
<form
method=
"{{ method or 'POST' }}"
action=
"{{ url_for('index') }}"
class=
"pull-left"
>
{% for category in selected_categories %}
<input
type=
"hidden"
name=
"category_{{ category }}"
value=
"1"
/>
{% endfor %}
<input
type=
"hidden"
name=
"q"
value=
"{{ q }}"
/>
<input
type=
"hidden"
name=
"q"
value=
"{{ q
|e
}}"
/>
<input
type=
"hidden"
name=
"pageno"
value=
"{{ pageno+1 }}"
/>
<input
type=
"hidden"
name=
"time_range"
value=
"{{ time_range }}"
/>
<button
type=
"submit"
class=
"btn btn-default"
><span
class=
"glyphicon glyphicon-forward"
></span>
{{ _('next page') }}
</button>
...
...
@@ -130,7 +130,7 @@
<div
class=
"clearfix"
></div>
{% for output_type in ('csv', 'json', 'rss') %}
<form
method=
"{{ method or 'POST' }}"
action=
"{{ url_for('index') }}"
class=
"form-inline pull-{% if rtl %}right{% else %}left{% endif %} result_download"
>
<input
type=
"hidden"
name=
"q"
value=
"{{ q }}"
>
<input
type=
"hidden"
name=
"q"
value=
"{{ q
|e
}}"
>
<input
type=
"hidden"
name=
"format"
value=
"{{ output_type }}"
>
{% for category in selected_categories %}
<input
type=
"hidden"
name=
"category_{{ category }}"
value=
"1"
>
{% endfor %}
<input
type=
"hidden"
name=
"pageno"
value=
"{{ pageno }}"
>
...
...
searx/templates/pix-art/results.html
View file @
28f12ef5
...
...
@@ -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 %}
\ No newline at end of file
{% endif %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment