Merge branch 'benconnito-curie-fix'
This commit is contained in:
commit
d4595c149f
@ -82,14 +82,14 @@ class WampConnection extends AbstractConnectionDecorator {
|
|||||||
*/
|
*/
|
||||||
public function getUri($uri) {
|
public function getUri($uri) {
|
||||||
$curieSeperator = ':';
|
$curieSeperator = ':';
|
||||||
$fullSeperator = '#';
|
|
||||||
|
|
||||||
if (preg_match('/http(s*)\:\/\//', $uri) == false) {
|
if (preg_match('/http(s*)\:\/\//', $uri) == false) {
|
||||||
if (strpos($uri, $curieSeperator) !== false) {
|
if (strpos($uri, $curieSeperator) !== false) {
|
||||||
list($prefix, $action) = explode($curieSeperator, $uri);
|
list($prefix, $action) = explode($curieSeperator, $uri);
|
||||||
$expandedPrefix = isset($this->WAMP->prefixes[$prefix]) ? $this->WAMP->prefixes[$prefix] : $prefix;
|
|
||||||
|
|
||||||
return $expandedPrefix . $fullSeperator . $action;
|
if(isset($this->WAMP->prefixes[$prefix]) === true){
|
||||||
|
return $this->WAMP->prefixes[$prefix] . '#' . $action;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user