# HG changeset patch # User Martin B. # Date 1373280195 -7200 # Mon Jul 08 12:43:15 2013 +0200 # Node ID 795b2472df69fe17a9d32803df09a4a18deb5c01 # Parent b8d87bdae1c7cd85a3ffcaae96a2c2c1852f5859 Encode feed topic URL as it is a GET parameter diff --git a/djpubsubhubbub/models.py b/djpubsubhubbub/models.py --- a/djpubsubhubbub/models.py +++ b/djpubsubhubbub/models.py @@ -87,7 +87,7 @@ 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 @@ 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,