mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Enforce that values passed to urlencode() are strings
This commit is contained in:
parent
f33c52b20f
commit
18d1ace121
1 changed files with 1 additions and 1 deletions
|
|
@ -626,7 +626,7 @@ class Router
|
|||
$route = preg_replace_callback('#\\$([a-zA-Z0-9_]+)(:[a-z]+)?#i', function($match) use(&$vars) {
|
||||
if (isset($vars[$match[1]]))
|
||||
{
|
||||
$replacement = urlencode($vars[$match[1]]);
|
||||
$replacement = urlencode(strval($vars[$match[1]]));
|
||||
unset($vars[$match[1]]);
|
||||
return (isset($match[2]) && $match[2] === ':delete') ? '' : $replacement;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue