relaxed isClientScript regex, fixed #1198

v1.18.x
Julian Lam 11 years ago
parent 197b34461f
commit 43e0c726fa

@ -144,7 +144,7 @@ function handleErrors(err, req, res, next) {
function catch404(req, res, next) { function catch404(req, res, next) {
var isLanguage = new RegExp('^' + nconf.get('relative_path') + '/language/[\\w]{2,}/.*.json'), var isLanguage = new RegExp('^' + nconf.get('relative_path') + '/language/[\\w]{2,}/.*.json'),
isClientScript = new RegExp('^' + nconf.get('relative_path') + '\\/src\\/forum(\\/admin)?\\/[\\w]+\\.js'); isClientScript = new RegExp('^' + nconf.get('relative_path') + '\\/src\\/forum(\\/admin)?\\/.+\\.js');
res.status(404); res.status(404);

Loading…
Cancel
Save