diff --git a/web/stuff/class_validator.php b/web/stuff/class_validator.php index 4bd1d4b1..7a5ab160 100644 --- a/web/stuff/class_validator.php +++ b/web/stuff/class_validator.php @@ -343,9 +343,10 @@ class ValidateUserinput { return $this->loop($check,'description',$type); } } + // https://github.com/easy-wi/developer/issues/76 forking l4d(2) servers '#' needed function startparameter ($value,$type,$object=false) { $check=$this->if_obj_or_str($value,$type,$object); - if ($check and is_string($check) and preg_match('/^[\w\r\n\(\)\[\]\{\}\~\=\?\%\:\.\,\"+-\_\|ßöÖäÄüÜ ]+$/',$check)) { + if ($check and is_string($check) and preg_match('/^[\w\r\n\#\(\)\[\]\{\}\~\=\?\%\:\.\,\"+-\_\|ßöÖäÄüÜ ]+$/',$check)) { return $check; } else if ($check) { return $this->loop($check,'startparameter',$type);