diff -r 5a6b6e770365 -r 68c69c656a2c web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationInstance.php --- a/web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationInstance.php Thu May 07 15:10:09 2015 +0200 +++ b/web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationInstance.php Thu May 07 15:16:02 2015 +0200 @@ -15,7 +15,7 @@ * @category Zend * @package Zend_Service_WindowsAzure * @subpackage Diagnostics - * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @version $Id$ */ @@ -30,11 +30,14 @@ */ require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationDataSources.php'; +/** Zend_Xml_Security */ +require_once 'Zend/Xml/Security.php'; + /** * @category Zend * @package Zend_Service_WindowsAzure * @subpackage Diagnostics - * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * * @property Zend_Service_WindowsAzure_Diagnostics_ConfigurationDataSources DataSources Data sources @@ -60,7 +63,7 @@ public function loadXml($configurationXml) { // Convert to SimpleXMLElement - $configurationXml = simplexml_load_string($configurationXml); + $configurationXml = Zend_Xml_Security::scan($configurationXml); // Assign general settings $this->DataSources->OverallQuotaInMB = (int)$configurationXml->DataSources->OverallQuotaInMB; @@ -214,4 +217,4 @@ // Return return implode("\r\n", $returnValue); } -} \ No newline at end of file +}