Skip to content

Commit

Permalink
Add XmlSercurity class
Browse files Browse the repository at this point in the history
  • Loading branch information
Bui Sy Nguyen committed Apr 28, 2016
1 parent 5b97a6c commit 9f266aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fproject/common/utils/XmlSecurity.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public static function scan($xml, DOMDocument $dom = null)

// Load XML with network access disabled (LIBXML_NONET)
// error disabled with @ for PHP-FPM scenario
set_error_handler(array('fproject\amf\util\XmlSecurity', 'loadXmlErrorHandler'), E_WARNING);
set_error_handler(array('fproject\common\utils\XmlSecurity', 'loadXmlErrorHandler'), E_WARNING);

$result = $dom->loadXML($xml, LIBXML_NONET);
restore_error_handler();
Expand Down

0 comments on commit 9f266aa

Please sign in to comment.