]> git.saurik.com Git - wxWidgets.git/commitdiff
In SetProxy, add 1 to pos when parsing port since otherwise we include the colon.
authorJulian Smart <julian@anthemion.co.uk>
Tue, 4 Jun 2002 11:01:07 +0000 (11:01 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 4 Jun 2002 11:01:07 +0000 (11:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/url.cpp

index f10cd6c903bedc35705e6726e349cdd6241035d9..8ae14ec4e993c216490258ba92103743408f0a04 100644 (file)
@@ -387,7 +387,7 @@ void wxURL::SetProxy(const wxString& url_proxy)
             return;
 
         hostname = tmp_str(0, pos);
-        port = tmp_str(pos, tmp_str.Length()-pos);
+        port = tmp_str(pos+1, tmp_str.Length()-pos);
 
         addr.Hostname(hostname);
         addr.Service(port);