Commit 623c9e13 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix a bug that raises an error with a URL having a port number like...

fix a bug that raises an error with a URL having a port number like http://example.com:8080/path/path.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29170 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bc6f6184
......@@ -78,7 +78,7 @@ class UrlMixIn:
"""
if ':' in url:
# This is the normal case (protocol specified in the URL)
protocol, url_string = url.split(':')
protocol, url_string = url.split(':', 1)
if url_string.startswith('//'): url_string = url_string[2:]
self._setUrlProtocol(protocol)
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment