Upgrade PHPWord
[civicrm-core.git] / tools / scripts / composer / patches / phpoffice-common-xml-entity-fix.patch
1 --- src/Common/XMLReader.php 2019-02-24 13:35:42.895637978 +1100
2 +++ src/Common/XMLReader.php 2019-02-24 11:41:29.462449569 +1100
3 @@ -71,10 +71,11 @@
4 */
5 public function getDomFromString($content)
6 {
7 + $original = libxml_disable_entity_loader();
8 libxml_disable_entity_loader(true);
9 $this->dom = new \DOMDocument();
10 $this->dom->loadXML($content);
11 -
12 + libxml_disable_entity_loader($original);
13 return $this->dom;
14 }
15