mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
relaxed isClientScript regex, fixed #1198
This commit is contained in:
@@ -144,7 +144,7 @@ function handleErrors(err, req, res, next) {
|
||||
|
||||
function catch404(req, res, next) {
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user