web/lib/Zend/Feed/Pubsubhubbub/CallbackAbstract.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Feed_Pubsubhubbub
    16  * @package    Zend_Feed_Pubsubhubbub
    17  * @subpackage Callback
    17  * @subpackage Callback
    18  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  * @version    $Id: CallbackAbstract.php 22662 2010-07-24 17:37:36Z mabe $
    20  * @version    $Id: CallbackAbstract.php 24842 2012-05-31 18:31:28Z rob $
    21  */
    21  */
    22 
    22 
    23 /**
    23 /**
    24  * @see Zend_Feed_Pubsubhubbub_CallbackInterface
    24  * @see Zend_Feed_Pubsubhubbub_CallbackInterface
    25  */
    25  */
    32 
    32 
    33 /**
    33 /**
    34  * @category   Zend
    34  * @category   Zend
    35  * @package    Zend_Feed_Pubsubhubbub
    35  * @package    Zend_Feed_Pubsubhubbub
    36  * @subpackage Callback
    36  * @subpackage Callback
    37  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    37  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    38  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    38  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    39  */
    39  */
    40 abstract class Zend_Feed_Pubsubhubbub_CallbackAbstract
    40 abstract class Zend_Feed_Pubsubhubbub_CallbackAbstract
    41     implements Zend_Feed_Pubsubhubbub_CallbackInterface
    41     implements Zend_Feed_Pubsubhubbub_CallbackInterface
    42 {
    42 {
    43     /**
    43     /**
    44      * An instance of Zend_Feed_Pubsubhubbub_Model_SubscriptionInterface used 
    44      * An instance of Zend_Feed_Pubsubhubbub_Model_SubscriptionInterface used
    45      * to background save any verification tokens associated with a subscription
    45      * to background save any verification tokens associated with a subscription
    46      * or other.
    46      * or other.
    47      *
    47      *
    48      * @var Zend_Feed_Pubsubhubbub_Model_SubscriptionInterface
    48      * @var Zend_Feed_Pubsubhubbub_Model_SubscriptionInterface
    49      */
    49      */
   217      * Attempt to detect the callback URL (specifically the path forward)
   217      * Attempt to detect the callback URL (specifically the path forward)
   218      */
   218      */
   219     protected function _detectCallbackUrl()
   219     protected function _detectCallbackUrl()
   220     {
   220     {
   221         $callbackUrl = '';
   221         $callbackUrl = '';
   222         if (isset($_SERVER['HTTP_X_REWRITE_URL'])) {
   222         if (isset($_SERVER['HTTP_X_ORIGINAL_URL'])) {
       
   223             $callbackUrl = $_SERVER['HTTP_X_ORIGINAL_URL'];
       
   224         } elseif (isset($_SERVER['HTTP_X_REWRITE_URL'])) {
   223             $callbackUrl = $_SERVER['HTTP_X_REWRITE_URL'];
   225             $callbackUrl = $_SERVER['HTTP_X_REWRITE_URL'];
   224         } elseif (isset($_SERVER['REQUEST_URI'])) {
   226         } elseif (isset($_SERVER['REQUEST_URI'])) {
   225             $callbackUrl = $_SERVER['REQUEST_URI'];
   227             $callbackUrl = $_SERVER['REQUEST_URI'];
   226             $scheme = 'http';
   228             $scheme = 'http';
   227             if ($_SERVER['HTTPS'] == 'on') {
   229             if ($_SERVER['HTTPS'] == 'on') {