dedicated server api update
This commit is contained in:
		| @@ -4250,9 +4250,9 @@ class Connection | |||||||
| 		if(is_string($filename)) | 		if(is_string($filename)) | ||||||
| 		{ | 		{ | ||||||
| 			$filename = $this->stripBom($filename); | 			$filename = $this->stripBom($filename); | ||||||
| 			if(mb_check_encoding($filename, 'ascii')) | 			if(preg_match('/[^\x09\x0A\x0D\x20-\x7E]/', $filename)) | ||||||
| 				return $filename; | 				return "\xEF\xBB\xBF".$filename; | ||||||
| 			return "\xEF\xBB\xBF".$filename; | 			return $filename; | ||||||
| 		} | 		} | ||||||
| 		return array_map(array($this, 'secureUtf8'), $filename); | 		return array_map(array($this, 'secureUtf8'), $filename); | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -34,6 +34,7 @@ class FaultException extends Exception | |||||||
| 				return new LockedFeatureException($faultString, $faultCode); | 				return new LockedFeatureException($faultString, $faultCode); | ||||||
| 			case 'Login or Uid unknown.': | 			case 'Login or Uid unknown.': | ||||||
| 			case 'Login unknown.': | 			case 'Login unknown.': | ||||||
|  | 			case 'Payer login unknown.': | ||||||
| 				return new UnknownPlayerException($faultString, $faultCode); | 				return new UnknownPlayerException($faultString, $faultCode); | ||||||
| 			case 'The player is not a spectator': | 			case 'The player is not a spectator': | ||||||
| 			case 'The player is not a spectator.': | 			case 'The player is not a spectator.': | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user