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).

Comments

acouch’s picture

StatusFileSize
new1 KB

This 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();

BenK’s picture

I 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

nlindley’s picture

StatusFileSize
new540 bytes

This patch should have the same changes as #1, just rerolled using git diff. Hopefully this works for you.

damien tournoud’s picture

Status: Active » Closed (won't fix)

The -reloaded branch has been merged. The whole XML support is gone.