From f75a6c36cbc14ee4c80b667161bdc0a2b48ca6d7 Mon Sep 17 00:00:00 2001 From: "haertl.mike" <> Date: Wed, 21 Jan 2009 08:49:21 +0000 Subject: Fixed URL wildcard pattern issue --- framework/Web/TUrlMapping.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'framework/Web/TUrlMapping.php') diff --git a/framework/Web/TUrlMapping.php b/framework/Web/TUrlMapping.php index 7a9628fd..47232401 100644 --- a/framework/Web/TUrlMapping.php +++ b/framework/Web/TUrlMapping.php @@ -630,6 +630,9 @@ class TUrlMappingPattern extends TComponent else preg_match($this->getParameterizedPattern(),trim($request->getPathInfo(),'/').'/',$matches); + if($this->getIsWildCardPattern() && isset($matches[$this->_serviceID])) + $matches[$this->_serviceID]=str_replace('*',$matches[$this->_serviceID],$this->_serviceParameter); + if (isset($matches['urlparams'])) { $params=explode('/',$matches['urlparams']); -- cgit v1.2.3