OSDN Git Service
(root)
/
php-libraries
/
Router.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
372e811
)
Added delimiter parameter to preg_quote
author
lpotherat
<l.potherat@planetb.fr>
Mon, 3 Apr 2017 07:11:49 +0000
(09:11 +0200)
committer
GitHub
<noreply@github.com>
Mon, 3 Apr 2017 07:11:49 +0000
(09:11 +0200)
src/Router.php
patch
|
blob
|
history
diff --git
a/src/Router.php
b/src/Router.php
index
d32656e
..
e9bd478
100755
(executable)
--- a/
src/Router.php
+++ b/
src/Router.php
@@
-177,7
+177,7
@@
class Router
// loop trough parameter names, store matching value in $params array
foreach ($param_keys as $key) {
if (isset($params[$key])) {
- $url = preg_replace('/:'.preg_quote($key).'/', $params[$key], $url, 1);
+ $url = preg_replace('/:'.preg_quote($key
,'/'
).'/', $params[$key], $url, 1);
}
}
}