From bb80bb5b30d7b16f39e6c1c63637f98fdf4ff63a Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 4 Jun 2002 11:01:07 +0000 Subject: [PATCH] In SetProxy, add 1 to pos when parsing port since otherwise we include the colon. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/url.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/url.cpp b/src/common/url.cpp index f10cd6c903..8ae14ec4e9 100644 --- a/src/common/url.cpp +++ b/src/common/url.cpp @@ -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);