I have a product with a sku of "test&dvd" that throws a warning when I get to the sales tax calc portion of the checkout.

Warning: SimpleXMLElement::addChild() [simplexmlelement.addchild]: unterminated entity reference dvd in commerce_exactor_calc_invoice_request_xml() (line 308 of /commerce_exactor/modules/commerce_exactor_calc/commerce_exactor_calc.module).

Removing the ampersand from the sku removes the warning, but I believe I'll have some skus that require ampersands to match our other systems.

Comments

cyu’s picture

Some context on what is happening: http://stackoverflow.com/a/555039

dwkitchen’s picture

Issue summary: View changes
Status: Active » Fixed

Wrapped the SKU in check_plain().

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.