Просмотр исходного кода

update sanitizePath regex

remove accidental inclusion of , and add null char \x00
Brian Gough 11 лет назад
Родитель
Сommit
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, "")