Skip to content

Commit 0890106

Browse files
author
Skylear
committed
Move $uri var in run()
1 parent 64119b2 commit 0890106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Splashsky/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ private static function tokenize(string $uri)
153153
public static function run(string $basePath = '', bool $multimatch = false)
154154
{
155155
$basePath = rtrim($basePath, '/');
156-
$uri = parse_url($_SERVER['REQUEST_URI'])['path'];
157156
$method = $_SERVER['REQUEST_METHOD'];
157+
$uri = parse_url($_SERVER['REQUEST_URI'])['path'];
158158
$path = urldecode(rtrim($uri, '/'));
159159

160160
// If the path is empty (no slash in URI) place one to satisfy the root route ('/')

0 commit comments

Comments
 (0)