Following waring generated on creating a new customer profile, with an ampersand in the title.
Warning: SimpleXMLElement::addChild() [simplexmlelement.addchild]: unterminated entity reference XXXX XXXX XXX in addressfield_standard_xnl_validate() (line 484 of sites/all/modules/addressfield/addressfield.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | escapevalues-1064248-3.patch | 540 bytes | nlindley |
| #1 | escapevalues-1064248.patch | 1 KB | acouch |
Comments
Comment #1
acouch commentedThis happens b/c & is not escaped as required for SimpleXMLElement: http://bugs.php.net/bug.php?id=44458
Attached is a patch that passes the values in xnl_validate through check_plain();
Comment #2
BenK commentedI experienced the same problem and tried to apply the patch in #1. But when applying the patch I'm getting the following error:
patch: **** malformed patch at line 30: --
I also tried using "git apply" but got the same result. Can you look at a re-roll?
--Ben
Comment #3
nlindley commentedThis patch should have the same changes as #1, just rerolled using git diff. Hopefully this works for you.
Comment #4
damien tournoud commentedThe
-reloadedbranch has been merged. The whole XML support is gone.