ソースを参照

update sanitizePath regex

remove accidental inclusion of , and add null char \x00
Brian Gough 11 年 前
親
コミット
4532cd14b0
1 ファイル変更、1 行追加、1 行削除
  1. 1 1
      services/clsi/app/coffee/RequestParser.coffee

+ 1 - 1
services/clsi/app/coffee/RequestParser.coffee

@@ -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, "")