From 4e72c067706da2a3651ff163bccddcd0a52a0510 Mon Sep 17 00:00:00 2001 From: "edburns%acm.org" Date: Tue, 3 Apr 2001 21:56:59 +0000 Subject: [PATCH] http://bugzilla.mozilla.org/show_bug.cgi?id=69466 r=av sr=waterson Make it so incomplete hostnames, such as .eng.sun.com, are valid entries for the noProxyFor list. git-svn-id: svn://10.0.0.236/trunk@91180 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp | 2 +- mozilla/modules/plugin/nglsrc/nsPluginHostImpl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp b/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp index a459fe916e5..f95a537bd8e 100644 --- a/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp +++ b/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp @@ -2264,7 +2264,7 @@ NS_IMETHODIMP nsPluginHostImpl::FindProxyForURL(const char* url, char* *result) token = nsCRT::strtok( noProxyCopy, comma, &newStr ); while( token != NULL ) { - if (PL_strstr((const char *) token, (const char *) proxyHost)) { + if (PL_strstr((const char *) proxyHost, (const char *) token)) { useDirect = PR_TRUE; break; } diff --git a/mozilla/modules/plugin/nglsrc/nsPluginHostImpl.cpp b/mozilla/modules/plugin/nglsrc/nsPluginHostImpl.cpp index a459fe916e5..f95a537bd8e 100644 --- a/mozilla/modules/plugin/nglsrc/nsPluginHostImpl.cpp +++ b/mozilla/modules/plugin/nglsrc/nsPluginHostImpl.cpp @@ -2264,7 +2264,7 @@ NS_IMETHODIMP nsPluginHostImpl::FindProxyForURL(const char* url, char* *result) token = nsCRT::strtok( noProxyCopy, comma, &newStr ); while( token != NULL ) { - if (PL_strstr((const char *) token, (const char *) proxyHost)) { + if (PL_strstr((const char *) proxyHost, (const char *) token)) { useDirect = PR_TRUE; break; }