Commit 4c7a1d5
Andrew Keynes
Always encode entities in messageID and purchaseOrderNo
This fixes an issue where a client submitting a transaction containing a
purchaseOrderNo with an ampersand in it resulted in an 'unterminated
entity reference' exception.
Turns out that in SimpleXML 'addChild' doesn't encode entities however
when assigning the value directly it does.1 parent 9336b82 commit 4c7a1d5
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
0 commit comments