mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 03:23:10 +00:00
Allow non-latin characters in the rootResourcePath
This commit is contained in:
parent
561ce7dc60
commit
80382d5c15
1 changed files with 2 additions and 1 deletions
|
@ -75,4 +75,5 @@ module.exports = RequestParser =
|
|||
return attribute
|
||||
|
||||
_sanitizePath: (path) ->
|
||||
path.replace(/[^a-zA-Z0-9_\-;.,\/ ]/g, "")
|
||||
# See http://php.net/manual/en/function.escapeshellcmd.php
|
||||
path.replace(/[\#\&\;\`\|\*\?\~\<\>\^\(\)\[\]\{\}\$\\\,\x0A\xFF]/g, "")
|
Loading…
Reference in a new issue