Needs review
Project:
Commerce Transferuj.pl
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Oct 2013 at 11:19 UTC
Updated:
11 Oct 2013 at 09:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ad4m commentedHere is the patch that fixes this bug.
Comment #2
ad4m commentedAgain with attachment.
Comment #3
ad4m commentedFound another bugs in transaction status request validation.
1. Transaction id extracted from $_POST is a string, but is run intval().
2. Transaction amount extracted from $_POST is run through floatval(). There is a difference in md5 checksum if you use float or string. The md5 checksum returned by Transferuj.pl uses transaction id as a string, not float. I've checked that by manually comparing md5 checksums.
I'm attaching a patch fixing both and the previous bug.
Comment #4
szymon.l commentedWorks for me, thanks!