Further restrict which URLs get remapped to static.pcjs.org

This commit is contained in:
Jeff Parsons 2015-02-08 14:17:03 -08:00 committed by jeffpar
commit 7302980139

View file

@ -154,7 +154,7 @@ net.encodeURL = function(sURL, req, fDebug)
if (sURL) {
sURL = sURL.replace(/\\/g, '/');
if (!fDebug) {
if (sURL.match(/^[^:]*static/)) {
if (sURL.match(/^[^:?]*static/)) {
sURL = "http://static.pcjs.org" + path.join(req.path, sURL).replace("/static/", "/");
}
}