gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-merchant-demos] branch master updated: no URL encoding


From: gnunet
Subject: [taler-taler-merchant-demos] branch master updated: no URL encoding
Date: Tue, 11 Aug 2020 19:56:11 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository taler-merchant-demos.

The following commit(s) were added to refs/heads/master by this push:
     new 1f76d80  no URL encoding
1f76d80 is described below

commit 1f76d8093a3ac24f9f91f9aa31414b4673e4d140
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Tue Aug 11 23:26:07 2020 +0530

    no URL encoding
---
 talermerchantdemos/blog/blog.py | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/talermerchantdemos/blog/blog.py b/talermerchantdemos/blog/blog.py
index 1e07267..a6e6be0 100644
--- a/talermerchantdemos/blog/blog.py
+++ b/talermerchantdemos/blog/blog.py
@@ -186,13 +186,6 @@ def render_article(article_name, data, order_id):
     )
 
 
-def add_param(url, key, val):
-    params = urlencode(dict(key=val))
-    if urlparse(url)[4]:
-        return url + '&' + params
-    else:
-        return url + '?' + params
-
 ##
 # Trigger a article purchase.  The logic follows the main steps:
 #
@@ -234,7 +227,7 @@ def article(article_name, data=None):
         order = dict(
             amount=ARTICLE_AMOUNT,
             extra=dict(article_name=article_name),
-            fulfillment_url=add_param(flask.request.base_url, "order_id", 
"${ORDER_ID}"),
+            fulfillment_url=flask.request.base_url + "?order_id=${ORDER_ID}",
             summary="Essay: " + article_name.replace("_", " "),
             # 10 minutes time for a refund
             refund_deadline=dict(t_ms=1000 * int(time.time() + 10 * 30)),

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]