[Checkins]
SVN: zc.authorizedotnet/trunk/src/zc/authorizedotnet/processing.py
make sure both hashes have the same case for the compare
Benji York
benji at zope.com
Fri Jun 30 19:21:27 EDT 2006
Log message for revision 68935:
make sure both hashes have the same case for the compare
Changed:
U zc.authorizedotnet/trunk/src/zc/authorizedotnet/processing.py
-=-
Modified: zc.authorizedotnet/trunk/src/zc/authorizedotnet/processing.py
===================================================================
--- zc.authorizedotnet/trunk/src/zc/authorizedotnet/processing.py 2006-06-30 20:27:55 UTC (rev 68934)
+++ zc.authorizedotnet/trunk/src/zc/authorizedotnet/processing.py 2006-06-30 23:21:26 UTC (rev 68935)
@@ -31,7 +31,7 @@
def validateHash(self, login, salt):
value = ''.join([salt, login, self.trans_id, self.amount])
- return self.hash == md5.new(value).hexdigest()
+ return self.hash.upper() == md5.new(value).hexdigest().upper()
class AuthorizeNetConnection(object):
More information about the Checkins
mailing list