summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-06-05 09:20:28 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-06-05 11:45:04 (GMT)
commitebedffed018420dfc79b847952f6f166079e0aa9 (patch)
tree509b707d1a185003573ba8babec20a5e41a6e3ff
parent1cce5f0deb459b29571dde1d1169eaaac78b3d46 (diff)
downloadeopayment-ebedffed018420dfc79b847952f6f166079e0aa9.zip
eopayment-ebedffed018420dfc79b847952f6f166079e0aa9.tar.gz
eopayment-ebedffed018420dfc79b847952f6f166079e0aa9.tar.bz2
ogone: do not consider empty parameters for signatures (#24283)
-rw-r--r--eopayment/ogone.py2
1 files changed, 1 insertions, 1 deletions
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)