diff -r 5a6b6e770365 -r 68c69c656a2c web/lib/Zend/Gdata/App/Base.php --- a/web/lib/Zend/Gdata/App/Base.php Thu May 07 15:10:09 2015 +0200 +++ b/web/lib/Zend/Gdata/App/Base.php Thu May 07 15:16:02 2015 +0200 @@ -16,9 +16,9 @@ * @category Zend * @package Zend_Gdata * @subpackage App - * @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: Base.php 24593 2012-01-05 20:35:02Z matthew $ + * @version $Id$ */ /** @@ -26,13 +26,16 @@ */ require_once 'Zend/Gdata/App/Util.php'; +/** @see Zend_Xml_Security */ +require_once 'Zend/Xml/Security.php'; + /** * Abstract class for all XML elements * * @category Zend * @package Zend_Gdata * @subpackage App - * @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 */ abstract class Zend_Gdata_App_Base @@ -301,9 +304,9 @@ // Load the feed as an XML DOMDocument object @ini_set('track_errors', 1); $doc = new DOMDocument(); - $success = @$doc->loadXML($xml); + $doc = @Zend_Xml_Security::scan($xml, $doc); @ini_restore('track_errors'); - if (!$success) { + if (!$doc) { require_once 'Zend/Gdata/App/Exception.php'; throw new Zend_Gdata_App_Exception("DOMDocument cannot parse XML: $php_errormsg"); }