jinja2: rename filter 'urlencode' to 'quote_plus'

urlencode does more than just a quote_plus. Using urlencode
was not sensible, so this commit addresses that.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-08-20 14:44:36 -07:00
parent e15a18e9fb
commit 49cc12f99d
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
5 changed files with 11 additions and 8 deletions

View file

@ -42,12 +42,12 @@
</li>
{% endif %}
<li>
<a href="/login?next={{ request.url.path | urlencode }}">
<a href="/login?next={{ request.url.path | quote_plus }}">
{{ "Vote for this package" | tr }}
</a>
</li>
<li>
<a href="/login?next={{ request.url.path | urlencode }}">
<a href="/login?next={{ request.url.path | quote_plus }}">
{{ "Enable notifications" | tr }}
</a>
</li>
@ -133,7 +133,7 @@
{% endif %}
<li>
{% if not request.user.is_authenticated() %}
<a href="/login?next={{ '/pkgbase/%s/request' | format(result.Name) | urlencode }}">
<a href="/login?next={{ '/pkgbase/%s/request' | format(result.Name) | quote_plus }}">
{{ "Submit Request" | tr }}
</a>
{% else %}