From 623c9e13a2af8062840a2cc1c956689627917624 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Thu, 24 Sep 2009 13:53:22 +0000
Subject: [PATCH] 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
---
 product/ERP5/Document/Url.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5/Document/Url.py b/product/ERP5/Document/Url.py
index 34ee5ee75b..4ddd8bcdc4 100644
--- a/product/ERP5/Document/Url.py
+++ b/product/ERP5/Document/Url.py
@@ -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:
-- 
2.30.9