see attachment.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | uc_payment_466438.patch | 1.05 KB | grendzy |
| uc_payment_html_watchdog.png | 57.96 KB | grendzy |
see attachment.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | uc_payment_466438.patch | 1.05 KB | grendzy |
| uc_payment_html_watchdog.png | 57.96 KB | grendzy |
Comments
Comment #1
grendzy commentedPatch:
Comment #2
rszrama commentedHmm, I don't know that we should just trust whatever gets reported to that URL in case someone tries to attack the site through a payment notification or something. Perhaps use check_markup() instead? Also, feel free to fix the typo in the comment above that line. ; )
Comment #3
grendzy commentedIn this particular case, the actual remote input has already been checked via t() calls using the '@' (check_plain) placeholder. In practice though it might be hard to guarantee that this is applied consistently.
check_markup() is tricky, because we can't predict what the default input format will be. filter_xss() would be a good choice I think, though we'd also have to change all the <b> tags to <strong>.
Comment #4
rszrama commentedComment #5
Island Usurper commentedI think it's more appropriate for the Payment module to escape the messages than the individual gateways. I noticed that uc_paypal_wpp_charge() doesn't escape it's message, nor does uc_cybersource_charge(). (Sometimes. I don't know why some things are escaped and some aren't.)
To really fix this issue right, all of the payment gateway modules need to be consistent. I'd rather assume that they won't escape the message than that they will. That way being wrong isn't as big a deal.
Comment #6
tr commented@rszrama: I don't think you're planning to work on this anymore?
Moving to 7.x-3.x ...
Comment #7
rszrama commentedhehe Yeah, I doubt it. : P