Allows alphanumeric names for the reflector

This commit is contained in:
Catalin Vatra 2020-06-25 07:32:12 +03:00 committed by GitHub
parent effd58b296
commit 8d7cb4b605
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -43,10 +43,11 @@ class xReflector {
fclose($handle); fclose($handle);
$this->ServiceName = substr($this->XMLContent, strpos($this->XMLContent, "<XLX")+4, 3); $this->ServiceName = substr($this->XMLContent, strpos($this->XMLContent, "<XLX")+4, 3);
if (!is_numeric($this->ServiceName)) { # XLX alphanumeric naming... By commenting the following four lines, it is possible to use an alphanumeric name for the reflector (eg: XLXABC)
$this->ServiceName = null; # if (!is_numeric($this->ServiceName)) {
return false; # $this->ServiceName = null;
} # return false;
# }
$this->ReflectorName = "XLX".$this->ServiceName; $this->ReflectorName = "XLX".$this->ServiceName;