Revert "Decode request.query_string before use."
This reverts commit b6fba854007bb4392846085a60178c44dbd7989e.
This commit is contained in:
parent
b6fba85400
commit
f9112bd883
@ -47,7 +47,7 @@
|
|||||||
{% template_hook('login_link') %}
|
{% template_hook('login_link') %}
|
||||||
{% if pass_auth is defined %}
|
{% if pass_auth is defined %}
|
||||||
<p>
|
<p>
|
||||||
<a href="{{ request.urlgen('mediagoblin.auth.login') }}?{{ request.query_string.decode() }}">
|
<a href="{{ request.urlgen('mediagoblin.auth.login') }}?{{ request.query_string }}">
|
||||||
{%- trans %}Or login with a password!{% endtrans %}
|
{%- trans %}Or login with a password!{% endtrans %}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
@ -63,3 +63,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
{% block openid_login_link %}
|
{% block openid_login_link %}
|
||||||
{% if openid_link is defined %}
|
{% if openid_link is defined %}
|
||||||
<p>
|
<p>
|
||||||
<a href="{{ request.urlgen('mediagoblin.plugins.openid.login') }}?{{ request.query_string.decode() }}">
|
<a href="{{ request.urlgen('mediagoblin.plugins.openid.login') }}?{{ request.query_string }}">
|
||||||
{%- trans %}Or login with OpenID!{% endtrans %}
|
{%- trans %}Or login with OpenID!{% endtrans %}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
@ -35,10 +35,10 @@
|
|||||||
<h2>{% trans %}Active Reports Filed{% endtrans %}</h2>
|
<h2>{% trans %}Active Reports Filed{% endtrans %}</h2>
|
||||||
{% if report_list.count() %}
|
{% if report_list.count() %}
|
||||||
{% if not active_settings.last_page == 1 %}
|
{% if not active_settings.last_page == 1 %}
|
||||||
{% if 'active_p='~active_settings.current_page in request.query_string.decode() %}
|
{% if 'active_p='~active_settings.current_page in request.query_string %}
|
||||||
{% set query_string = request.query_string.decode() %}{% else %}
|
{% set query_string = request.query_string %}{% else %}
|
||||||
{% set query_string =
|
{% set query_string =
|
||||||
'active_p='~active_settings.current_page~"&"+request.query_string.decode() %}
|
'active_p='~active_settings.current_page~"&"+request.query_string %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="right_align">
|
<div class="right_align">
|
||||||
{% set first_vis = active_settings.current_page-3 %}
|
{% set first_vis = active_settings.current_page-3 %}
|
||||||
@ -127,10 +127,10 @@ curr_page !=p %}
|
|||||||
<h2>{% trans %}Closed Reports{% endtrans %}</h2>
|
<h2>{% trans %}Closed Reports{% endtrans %}</h2>
|
||||||
{% if closed_report_list.count() %}
|
{% if closed_report_list.count() %}
|
||||||
{% if not closed_settings.last_page == 1 %}
|
{% if not closed_settings.last_page == 1 %}
|
||||||
{% if 'closed_p='~closed_settings.current_page in request.query_string.decode() %}
|
{% if 'closed_p='~closed_settings.current_page in request.query_string %}
|
||||||
{% set query_string = request.query_string.decode() %}{% else %}
|
{% set query_string = request.query_string %}{% else %}
|
||||||
{% set query_string =
|
{% set query_string =
|
||||||
'closed_p='~closed_settings.current_page~"&"+request.query_string.decode() %}
|
'closed_p='~closed_settings.current_page~"&"+request.query_string %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="right_align">
|
<div class="right_align">
|
||||||
{% set first_vis = closed_settings.current_page-3 %}
|
{% set first_vis = closed_settings.current_page-3 %}
|
||||||
|
@ -35,10 +35,10 @@
|
|||||||
|
|
||||||
{% if user_list.count() %}
|
{% if user_list.count() %}
|
||||||
{% if not last_page == 1 %}
|
{% if not last_page == 1 %}
|
||||||
{% if 'p='~current_page in request.query_string.decode() %}
|
{% if 'p='~current_page in request.query_string %}
|
||||||
{% set query_string = request.query_string.decode() %}{% else %}
|
{% set query_string = request.query_string %}{% else %}
|
||||||
{% set query_string =
|
{% set query_string =
|
||||||
'p='~current_page~"&"+request.query_string.decode() %}
|
'p='~current_page~"&"+request.query_string %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="right_align">
|
<div class="right_align">
|
||||||
{% set first_vis = current_page-3 %}
|
{% set first_vis = current_page-3 %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user