Skip to content

Commit dbae660

Browse files
committed
Fix issue #5
1 parent 2efd8c4 commit dbae660

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎System/Router/Router.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,10 @@ private function getMatchRoutersByPattern($pattern) {
126126
/**
127127
* dispatch url and pattern
128128
*/
129-
public function dispatch($url, $pattern) {
129+
public function dispatch($uri, $pattern) {
130+
$parsUrl = explode('?', $uri);
131+
$url = $parsUrl[0];
132+
130133
preg_match_all('@:([\w]+)@', $pattern, $params, PREG_PATTERN_ORDER);
131134

132135
$patternAsRegex = preg_replace_callback('@:([\w]+)@', [$this, 'convertPatternToRegex'], $pattern);

0 commit comments

Comments
 (0)