795b2472df69 — Martin B. 10 years ago
Encode feed topic URL as it is a GET parameter
1 files changed, 2 insertions(+), 2 deletions(-)

M djpubsubhubbub/models.py
M djpubsubhubbub/models.py +2 -2
@@ 87,7 87,7 @@ class SubscriptionManager(models.Manager
 
         try:
             response = self._send_request(
-                '{0}?hub.mode=status&hub.topic={1}'.format(hub, topic),
+                '{0}?hub.mode=status&hub.topic={1}'.format(hub, urlencode(topic)),
                 {},
                 headers,
                 debug,

          
@@ 104,7 104,7 @@ class SubscriptionManager(models.Manager
         headers = config.get_extra_hub_headers(topic, hub)
 
         response = self._send_request(
-            '{0}?hub.mode=retrieve&hub.topic={1}'.format(hub, topic),
+            '{0}?hub.mode=retrieve&hub.topic={1}'.format(hub, urlencode(topic)),
             {},
             headers,
             debug,