Ticket 76: Forking L4D(2) servers

https://github.com/easy-wi/developer/issues/76
This commit is contained in:
Ulrich Block 2013-09-28 11:16:00 +02:00
parent 3c922ad206
commit 6fb4e1a6a2

View File

@ -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);