зеркало из https://github.com/mozilla/pjs.git
Fix isInNet to be a little more strict. Bug 251675, patch by Anders Holm
<anders@anders.is-a-geek.net>, r=darin, sr=bzbarsky
This commit is contained in:
Родитель
d10fed0486
Коммит
b6f691de76
|
@ -238,7 +238,7 @@ var pacUtils =
|
|||
"}\n"+
|
||||
|
||||
"function isInNet(ipaddr, pattern, maskstr) {\n"+
|
||||
" var test = /^(\\d{1,4})\\.(\\d{1,4})\\.(\\d{1,4})\\.(\\d{1,4})$/(ipaddr);\n"+
|
||||
" var test = /^(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})$/(ipaddr);\n"+
|
||||
" if (test == null) {\n"+
|
||||
" ipaddr = dnsResolve(ipaddr);\n"+
|
||||
" if (ipaddr == null)\n"+
|
||||
|
|
Загрузка…
Ссылка в новой задаче