Commit d183ad58 authored by Cyril Vazquez's avatar Cyril Vazquez
Browse files

Merge branch 'hotfix/2.3.8_XMLResolveExternals' into 'Support/2.3.X'

Set DOMDocument::$resolveExternals = false to prevent XEE processing

See merge request maarch/archivesPubliques!55
parents b559c98f 7ecd3909
...@@ -83,6 +83,8 @@ abstract class abstractMessage ...@@ -83,6 +83,8 @@ abstract class abstractMessage
$message->xml = \laabs::newService('dependency/xml/Document'); $message->xml = \laabs::newService('dependency/xml/Document');
$message->xml->resolveExternals = false;
$message->xml->load($message->path); $message->xml->load($message->path);
$message->xPath = new \DOMXPath($message->xml); $message->xPath = new \DOMXPath($message->xml);
......
...@@ -83,6 +83,8 @@ abstract class abstractMessage ...@@ -83,6 +83,8 @@ abstract class abstractMessage
$message->xml = \laabs::newService('dependency/xml/Document'); $message->xml = \laabs::newService('dependency/xml/Document');
$message->xml->resolveExternals = false;
$message->xml->load($message->path); $message->xml->load($message->path);
$message->xPath = new \DOMXPath($message->xml); $message->xPath = new \DOMXPath($message->xml);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment