Browse Source

Trim callback URL of forward slashes before appending subscription ID

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20546 44c647ce-9c0f-0410-b52a-842ac1e357ba
padraic 16 years ago
parent
commit
d99c34007b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      library/Zend/Feed/Pubsubhubbub/Subscriber.php

+ 1 - 1
library/Zend/Feed/Pubsubhubbub/Subscriber.php

@@ -730,7 +730,7 @@ class Zend_Feed_Pubsubhubbub_Subscriber
             $params['hub.callback'] = $this->getCallbackUrl()
             $params['hub.callback'] = $this->getCallbackUrl()
                 . '?xhub.subscription=' . Zend_Feed_Pubsubhubbub::urlencode($key);
                 . '?xhub.subscription=' . Zend_Feed_Pubsubhubbub::urlencode($key);
         } else {
         } else {
-            $params['hub.callback'] = $this->getCallbackUrl()
+            $params['hub.callback'] = rtrim($this->getCallbackUrl(), '/')
                 . '/' . Zend_Feed_Pubsubhubbub::urlencode($key);
                 . '/' . Zend_Feed_Pubsubhubbub::urlencode($key);
         }
         }
         if ($mode == 'subscribe' && !is_null($this->getLeaseSeconds())) {
         if ($mode == 'subscribe' && !is_null($this->getLeaseSeconds())) {