oops! fix using $prefix before it was defined.

This commit is contained in:
Ben Connito 2015-06-08 09:49:36 -04:00
parent 259d384bcf
commit ddec2cb313

View File

@ -84,12 +84,14 @@ class WampConnection extends AbstractConnectionDecorator {
$curieSeperator = ':';
if (preg_match('/http(s*)\:\/\//', $uri) == false) {
if (strpos($uri, $curieSeperator) !== false && isset($this->WAMP->prefixes[$prefix]) === true) {
if (strpos($uri, $curieSeperator) !== false) {
list($prefix, $action) = explode($curieSeperator, $uri);
if(isset($this->WAMP->prefixes[$prefix]) === true){
return $this->WAMP->prefixes[$prefix] . '#' . $action;
}
}
}
return $uri;
}