Allow non-latin characters in the rootResourcePath

This commit is contained in:
James Allen 2015-02-13 11:21:35 +00:00
parent 561ce7dc60
commit 80382d5c15

View file

@ -75,4 +75,5 @@ module.exports = RequestParser =
return attribute return attribute
_sanitizePath: (path) -> _sanitizePath: (path) ->
path.replace(/[^a-zA-Z0-9_\-;.,\/ ]/g, "") # See http://php.net/manual/en/function.escapeshellcmd.php
path.replace(/[\#\&\;\`\|\*\?\~\<\>\^\(\)\[\]\{\}\$\\\,\x0A\xFF]/g, "")