From ae911a24a55b6e0af7885c37395ffe500e264e6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 5 Jun 2018 11:20:28 +0200 Subject: [PATCH] ogone: do not consider empty parameters for signatures (#24283) --- eopayment/ogone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eopayment/ogone.py b/eopayment/ogone.py index a94ed08..5a66b32 100644 --- a/eopayment/ogone.py +++ b/eopayment/ogone.py @@ -463,7 +463,7 @@ class Payment(PaymentCommon): values = params.items() values = [(a.upper(), b) for a, b in values] values = sorted(values) - values = [u'%s=%s' % (a, b) for a, b in values if a in keep] + values = [u'%s=%s' % (a, b) for a, b in values if a in keep and b] tosign = key.join(values) tosign += key tosign = force_byte(tosign) -- 2.17.1