From ebedffed018420dfc79b847952f6f166079e0aa9 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 136462b..fbc9e2d 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)