From 73029801396927d318bea661f449cbd4c902aaa0 Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Sun, 8 Feb 2015 14:17:03 -0800 Subject: [PATCH] Further restrict which URLs get remapped to static.pcjs.org --- modules/shared/lib/netlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/shared/lib/netlib.js b/modules/shared/lib/netlib.js index b1d09cda7..be0794147 100644 --- a/modules/shared/lib/netlib.js +++ b/modules/shared/lib/netlib.js @@ -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/", "/"); } }