dedicated server api update

This commit is contained in:
kremsy 2015-02-24 10:26:46 +01:00
parent cee9039c0b
commit 8011ce4adf
2 changed files with 4 additions and 3 deletions

View File

@ -4250,9 +4250,9 @@ class Connection
if(is_string($filename))
{
$filename = $this->stripBom($filename);
if(mb_check_encoding($filename, 'ascii'))
return $filename;
return "\xEF\xBB\xBF".$filename;
if(preg_match('/[^\x09\x0A\x0D\x20-\x7E]/', $filename))
return "\xEF\xBB\xBF".$filename;
return $filename;
}
return array_map(array($this, 'secureUtf8'), $filename);
}

View File

@ -34,6 +34,7 @@ class FaultException extends Exception
return new LockedFeatureException($faultString, $faultCode);
case 'Login or Uid unknown.':
case 'Login unknown.':
case 'Payer login unknown.':
return new UnknownPlayerException($faultString, $faultCode);
case 'The player is not a spectator':
case 'The player is not a spectator.':