From 7a42486b63797a37af5c26be1bd3d4fb235a5939 Mon Sep 17 00:00:00 2001 From: Enrico Zimuel Date: Fri, 28 Feb 2014 16:47:52 +0100 Subject: [PATCH] Use external ZendXml\Security --- src/Fault.php | 4 ++-- src/Response.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Fault.php b/src/Fault.php index 9af84a2..bb18801 100644 --- a/src/Fault.php +++ b/src/Fault.php @@ -10,7 +10,7 @@ namespace Zend\XmlRpc; use SimpleXMLElement; -use Zend\Xml\Security as XmlSecurity; +use ZendXml\Security as XmlSecurity; /** * XMLRPC Faults @@ -182,7 +182,7 @@ public function loadXml($fault) $xmlErrorsFlag = libxml_use_internal_errors(true); try { $xml = XmlSecurity::scan($fault); - } catch (\Zend\Xml\Exception\RuntimeException $e) { + } catch (\ZendXml\Exception\RuntimeException $e) { // Unsecure XML throw new Exception\RuntimeException('Failed to parse XML fault: ' . $e->getMessage(), 500, $e); } diff --git a/src/Response.php b/src/Response.php index 241df1a..f853758 100644 --- a/src/Response.php +++ b/src/Response.php @@ -9,7 +9,7 @@ namespace Zend\XmlRpc; -use Zend\Xml\Security as XmlSecurity; +use ZendXml\Security as XmlSecurity; /** * XmlRpc Response @@ -155,7 +155,7 @@ public function loadXml($response) try { $xml = XmlSecurity::scan($response); - } catch (\Zend\Xml\Exception\RuntimeException $e) { + } catch (\ZendXml\Exception\RuntimeException $e) { $this->fault = new Fault(651); $this->fault->setEncoding($this->getEncoding()); return false;