From d0818793794a36a55741771675ad573fa59cd568 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Thu, 13 Dec 2012 18:22:51 +0000 Subject: [PATCH] Parameters should be URL decoded. --- flight/net/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight/net/Router.php b/flight/net/Router.php index 4cd91ae..014b0a9 100644 --- a/flight/net/Router.php +++ b/flight/net/Router.php @@ -102,7 +102,7 @@ class Router { // Attempt to match route and named parameters if (preg_match($regex, $url, $matches)) { foreach ($ids as $k => $v) { - $this->params[$k] = (array_key_exists($k, $matches)) ? $matches[$k] : null; + $this->params[$k] = (array_key_exists($k, $matches)) ? urldecode($matches[$k]) : null; } $this->matched = $pattern;