Closed (fixed)
Project:
UC Linkpoint API
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2011 at 09:48 UTC
Updated:
24 May 2011 at 00:22 UTC
I am getting several orders with Credit card payment declined: SGS-020003: Invalid XML. When I look into these orders they all have a product with a text field attribute on them that has a < symbol in it. Orders without the symbol process fine. I know that there is already a function to remove ampersands and single quotes from the xml, this seems like a simple oversight.
Comments
Comment #1
bkosborneThanks for bringing this up... I will add to the cleansing function
Comment #2
bkosborneThis has been fixed in Git.
Comment #4
jrust commentedThis actually breaks everything by escaping all < and >.
Comment #5
jrust commentedOnly escaping the notes field now which is the only place that should have user-input characters that could break the xml.
Comment #6
bkosborneWow... can't believe I did that one lol... Thanks