diff --git a/dashboard/pgs/class.reflector.php b/dashboard/pgs/class.reflector.php index 6ec8a6e..d545e99 100755 --- a/dashboard/pgs/class.reflector.php +++ b/dashboard/pgs/class.reflector.php @@ -41,12 +41,19 @@ class xReflector { $handle = fopen($this->XMLFile, 'r'); $this->XMLContent = fread($handle, filesize($this->XMLFile)); fclose($handle); - + + # XLX alphanumeric naming... $this->ServiceName = substr($this->XMLContent, strpos($this->XMLContent, "ServiceName)) { + if (preg_match('/[^a-zA-Z0-9]/', $this->ServiceName) == 1) { $this->ServiceName = null; return false; } + +# $this->ServiceName = substr($this->XMLContent, strpos($this->XMLContent, "ServiceName)) { +# $this->ServiceName = null; +# return false; +# } $this->ReflectorName = "XLX".$this->ServiceName; diff --git a/dashboard2/pgs/class.reflector.php b/dashboard2/pgs/class.reflector.php index d6505f7..4a2c246 100644 --- a/dashboard2/pgs/class.reflector.php +++ b/dashboard2/pgs/class.reflector.php @@ -41,13 +41,20 @@ class xReflector { $handle = fopen($this->XMLFile, 'r'); $this->XMLContent = fread($handle, filesize($this->XMLFile)); fclose($handle); - + +# XLX alphanumeric naming... $this->ServiceName = substr($this->XMLContent, strpos($this->XMLContent, "ServiceName)) { + if (preg_match('/[^a-zA-Z0-9]/', $this->ServiceName) == 1) { $this->ServiceName = null; return false; } +# $this->ServiceName = substr($this->XMLContent, strpos($this->XMLContent, "ServiceName)) { +# $this->ServiceName = null; +# return false; +# } +# $this->ReflectorName = "XLX".$this->ServiceName; $LinkedPeersName = "XLX".$this->ServiceName." linked peers";