web/lib/Zend/Gdata/App.php
changeset 1230 68c69c656a2c
parent 807 877f952ae2bd
equal deleted inserted replaced
1229:5a6b6e770365 1230:68c69c656a2c
    14  * to license@zend.com so we can send you a copy immediately.
    14  * to license@zend.com so we can send you a copy immediately.
    15  *
    15  *
    16  * @category   Zend
    16  * @category   Zend
    17  * @package    Zend_Gdata
    17  * @package    Zend_Gdata
    18  * @subpackage App
    18  * @subpackage App
    19  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
    20  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    21  * @version    $Id: App.php 25259 2013-02-13 17:38:12Z frosch $
    21  * @version    $Id$
    22  */
    22  */
    23 
    23 
    24 /**
    24 /**
    25  * Zend_Gdata_Feed
    25  * Zend_Gdata_Feed
    26  */
    26  */
    43 
    43 
    44 /**
    44 /**
    45  * Zend_Uri/Http
    45  * Zend_Uri/Http
    46  */
    46  */
    47 require_once 'Zend/Uri/Http.php';
    47 require_once 'Zend/Uri/Http.php';
       
    48 
       
    49 /** @see Zend_Xml_Security */
       
    50 require_once 'Zend/Xml/Security.php';
    48 
    51 
    49 /**
    52 /**
    50  * Provides Atom Publishing Protocol (APP) functionality.  This class and all
    53  * Provides Atom Publishing Protocol (APP) functionality.  This class and all
    51  * other components of Zend_Gdata_App are designed to work independently from
    54  * other components of Zend_Gdata_App are designed to work independently from
    52  * other Zend_Gdata components in order to interact with generic APP services.
    55  * other Zend_Gdata components in order to interact with generic APP services.
    53  *
    56  *
    54  * @category   Zend
    57  * @category   Zend
    55  * @package    Zend_Gdata
    58  * @package    Zend_Gdata
    56  * @subpackage App
    59  * @subpackage App
    57  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    60  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
    58  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    61  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    59  */
    62  */
    60 class Zend_Gdata_App
    63 class Zend_Gdata_App
    61 {
    64 {
    62 
    65 
   820         }
   823         }
   821 
   824 
   822         // Load the feed as an XML DOMDocument object
   825         // Load the feed as an XML DOMDocument object
   823         @ini_set('track_errors', 1);
   826         @ini_set('track_errors', 1);
   824         $doc = new DOMDocument();
   827         $doc = new DOMDocument();
   825         $success = @$doc->loadXML($string);
   828         $doc = @Zend_Xml_Security::scan($string, $doc);
   826         @ini_restore('track_errors');
   829         @ini_restore('track_errors');
   827 
   830 
   828         if (!$success) {
   831         if (!$doc) {
   829             require_once 'Zend/Gdata/App/Exception.php';
   832             require_once 'Zend/Gdata/App/Exception.php';
   830             throw new Zend_Gdata_App_Exception(
   833             throw new Zend_Gdata_App_Exception(
   831                 "DOMDocument cannot parse XML: $php_errormsg");
   834                 "DOMDocument cannot parse XML: $php_errormsg");
   832         }
   835         }
   833 
   836