boobot: Some lib versions do not handle // well

This commit is contained in:
Laurent Bachelier 2013-06-27 14:54:22 +02:00
commit 8acc696623

View file

@ -53,6 +53,9 @@ def fixurl(url):
# remove javascript crap
url = url.replace('/#!/', '/')
# while valid, it is most likely an error
url = url.replace('//', '/')
# parse it
parsed = urlparse.urlsplit(url)