Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Commit

Permalink
Use external ZendXml\Security
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimuel authored and weierophinney committed Mar 5, 2014
1 parent 0ee07bc commit 7a42486
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Fault.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Zend\XmlRpc;

use SimpleXMLElement;
use Zend\Xml\Security as XmlSecurity;
use ZendXml\Security as XmlSecurity;

/**
* XMLRPC Faults
Expand Down Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Zend\XmlRpc;

use Zend\Xml\Security as XmlSecurity;
use ZendXml\Security as XmlSecurity;

/**
* XmlRpc Response
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7a42486

Please # to comment.