diff --git a/src/Pyrus/SimpleChannelServer/Main.php b/src/Pyrus/SimpleChannelServer/Main.php index d18f6b3..4f155d8 100644 --- a/src/Pyrus/SimpleChannelServer/Main.php +++ b/src/Pyrus/SimpleChannelServer/Main.php @@ -64,7 +64,7 @@ function __construct($channel, $webpath, $pyruspath = null) } $rest = $channel->protocols->rest; foreach ($rest as $restpath) { - if (preg_match('/https?:\/\/'.$channel->name.'\//', $restpath, $matches)) { + if (preg_match('/https?:\/\/'.preg_quote($channel->name, '/').'\//', $restpath, $matches)) { $this->uri = $matches[0]; $restpath = str_replace($matches[0], '', $restpath); break;