From 7ddef8d370cabc613b939571033395bf7522251f Mon Sep 17 00:00:00 2001 From: "darin%netscape.com" Date: Fri, 11 Jan 2002 22:52:32 +0000 Subject: [PATCH] fixes bug 117931 "Function shExpMatch in nsProxyAutoConfig.js: conversion from shell pattern to regexp is incorrect." patch=zybi@talex.com.pl r=tingley@sundell.net sr=darin@netscape.com --- netwerk/base/src/nsProxyAutoConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netwerk/base/src/nsProxyAutoConfig.js b/netwerk/base/src/nsProxyAutoConfig.js index d637cecc1ae..ddb03df1672 100644 --- a/netwerk/base/src/nsProxyAutoConfig.js +++ b/netwerk/base/src/nsProxyAutoConfig.js @@ -299,7 +299,7 @@ var pacUtils = " pattern = pattern.replace(/\\./g, '\\\\.');\n" + " pattern = pattern.replace(/\\*/g, '.*');\n" + " pattern = pattern.replace(/\\?/g, '.');\n" + -" var newRe = new RegExp(pattern);\n" + +" var newRe = new RegExp('^'+pattern+'$');\n" + " return newRe.test(url);\n" + "}\n" +