mollyproject/mollyproject — comment on commit 35790d8037edbbc05e5bbca369de658f6897896a
File:  line 0
By alexsdutton:

``unquote`` doesn't seem to have been imported anywhere, and (if it's ``urllib.unquote``) won't strip the query string:

>>> import urllib
>>> urllib.unquote('http://foo.com/bar/?baz=quux')
'http://foo.com/bar/?baz=quux'

You probably want something like ``urlparse.urlparse(request.REQUEST['return_url'])._replace(query='', fragment='').geturl()`` (which will need tweaking for Py<2.6).