mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 02:25:55 +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) {
|
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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user