summaryrefslogtreecommitdiff
path: root/talermerchantdemos/blog/blog.py
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-05-10 16:40:55 +0200
committerFlorian Dold <florian@dold.me>2021-05-10 16:40:55 +0200
commite80ad56b6a89a9b4be4c42f27902a71f797dd60a (patch)
treecb4b5e0c1fe3d25111ae59b4ce9ffc030a18323e /talermerchantdemos/blog/blog.py
parent158932b1cb7772782cb1211a2143dcb39b3dfe0b (diff)
downloadtaler-merchant-demos-e80ad56b6a89a9b4be4c42f27902a71f797dd60a.tar.gz
taler-merchant-demos-e80ad56b6a89a9b4be4c42f27902a71f797dd60a.tar.bz2
taler-merchant-demos-e80ad56b6a89a9b4be4c42f27902a71f797dd60a.zip
always quote the slug / article name
Diffstat (limited to 'talermerchantdemos/blog/blog.py')
-rw-r--r--talermerchantdemos/blog/blog.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/talermerchantdemos/blog/blog.py b/talermerchantdemos/blog/blog.py
index cb3d392..c84ab47 100644
--- a/talermerchantdemos/blog/blog.py
+++ b/talermerchantdemos/blog/blog.py
@@ -398,10 +398,10 @@ def article(article_name, lang=None, data=None):
# run the payment protocol.
response = flask.redirect(pay_status["order_status_url"])
response.set_cookie(
- "order_id", order_id, path=urllib.parse.quote(f"/essay/{article_name}")
+ "order_id", order_id, path=f"/essay/{article_name}"
)
response.set_cookie(
- "order_id", order_id, path=urllib.parse.quote(f"/{lang}/essay/{article_name}")
+ "order_id", order_id, path=f"/{lang}/essay/{article_name}"
)
return response
@@ -425,7 +425,7 @@ def handler_404(e):
@app.errorhandler(BackendException)
def handler_backend_exception(e):
t = flask.render_template(
- "survey-error.html.j2",
+ "blog-error.html.j2",
message=e.args[0],
json=e.backend_json,
status_code=e.backend_status,