update sanitizePath regex
remove accidental inclusion of , and add null char \x00
This commit is contained in:
@@ -76,4 +76,4 @@ module.exports = RequestParser =
|
|||||||
|
|
||||||
_sanitizePath: (path) ->
|
_sanitizePath: (path) ->
|
||||||
# See http://php.net/manual/en/function.escapeshellcmd.php
|
# See http://php.net/manual/en/function.escapeshellcmd.php
|
||||||
path.replace(/[\#\&\;\`\|\*\?\~\<\>\^\(\)\[\]\{\}\$\\\,\x0A\xFF]/g, "")
|
path.replace(/[\#\&\;\`\|\*\?\~\<\>\^\(\)\[\]\{\}\$\\\x0A\xFF\x00]/g, "")
|
||||||
|
|||||||
Reference in New Issue
Block a user