aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-06-19 14:55:18 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-06-19 14:55:18 +0200
commit2897e77fadcf40567acf07f869d634b65091c67b (patch)
treee3529b9d28698f5eb6798a2636b77588d975cd4e
parent53a59cffd5c77999c235739714d7f7747a663024 (diff)
downloadRouter-2897e77fadcf40567acf07f869d634b65091c67b.zip
Router-2897e77fadcf40567acf07f869d634b65091c67b.tar.gz
Router-2897e77fadcf40567acf07f869d634b65091c67b.tar.bz2
Prefix is no longer considered as a regex.
-rw-r--r--Http.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Http.php b/Http.php
index fb790f1..435defe 100644
--- a/Http.php
+++ b/Http.php
@@ -851,7 +851,7 @@ class Http extends Generic implements \Hoa\Core\Parameter\Parameterizable {
public function setPrefix ( $prefix ) {
$old = $this->_pathPrefix;
- $this->_pathPrefix = rtrim($prefix, '/');
+ $this->_pathPrefix = preg_quote(rtrim($prefix, '/'));
return $old;
}