mshtml: Use the last colon in proxy url as port separator

André Hentschel nerv at dawncrow.de
Tue Aug 16 12:59:55 CDT 2011


http://domain\user:[email protected]:8080 makes it visible that it's intended to get the last colon
---
 dlls/mshtml/nsembed.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c
index 2bebf8b..8465c99 100644
--- a/dlls/mshtml/nsembed.c
+++ b/dlls/mshtml/nsembed.c
@@ -519,7 +519,7 @@ static void set_proxy(nsIPrefBranch *pref)
     if(res != ERROR_SUCCESS || type != REG_SZ)
         return;
 
-    proxy_port = strchr(proxy, ':');
+    proxy_port = strrchr(proxy, ':');
     if (!proxy_port)
         return;
 
-- 
1.7.4.1




More information about the wine-patches mailing list