URIPatternList.parse mishandles * in domain
Posted: Mon Mar 23, 2009 1:16 am
IIUC, the following line of noscriptService.js is responsible for * in force-HTTPS glob patterns:
The first replacement appears to make the * in *.mattmccutchen.net not match slashes. But this doesn't work, because its output is affected by the second replacement. E.g., with *.mattmccutchen.net in the force-HTTPS list, http://a/.mattmccutchen.net is forced to HTTPS. Reversing the order of the replacements should fix the problem.
Code: Select all
return '^' + p.replace(/^([^\/:]+:\/*)\*/, "$1[^/]*").replace(/\*/g, '.*?');