mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 17:43:46 +00:00
update sanitizePath regex
remove accidental inclusion of , and add null char \x00
This commit is contained in:
parent
80382d5c15
commit
4532cd14b0
1 changed files with 1 additions and 1 deletions
|
@ -76,4 +76,4 @@ module.exports = RequestParser =
|
|||
|
||||
_sanitizePath: (path) ->
|
||||
# See http://php.net/manual/en/function.escapeshellcmd.php
|
||||
path.replace(/[\#\&\;\`\|\*\?\~\<\>\^\(\)\[\]\{\}\$\\\,\x0A\xFF]/g, "")
|
||||
path.replace(/[\#\&\;\`\|\*\?\~\<\>\^\(\)\[\]\{\}\$\\\x0A\xFF\x00]/g, "")
|
||||
|
|
Loading…
Reference in a new issue