Skip to content

Commit 3631e26

Browse files
author
viacheslav diomidov
committed
BUGFIX PPP-54497 simpleXml fix for & in values
1 parent 1bbf0a5 commit 3631e26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Api/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ protected function _arrayToXml(array $array, SimpleXMLElement $xml, $parentEl =
346346
if (is_array($value)) {
347347
$this->_arrayToXml($value, $this->_isAssocArray($value) ? $xml->addChild($el) : $xml, $el);
348348
} else {
349-
$xml->{$el} = $value;
349+
$xml->addChild($el, htmlspecialchars($value));
350350
}
351351
}
352352

0 commit comments

Comments
 (0)