Skip to content

Commit a178392

Browse files
committed
Simplify requestUri detection
We no longer need to worry about parse_url and rawdecode as we're not doing anything with base paths any more.
1 parent 987b9cf commit a178392

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Uri.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,7 @@ public static function createFromGlobals(array $globals)
190190
}
191191
}
192192

193-
// parse_url() requires a full URL. As we don't extract the domain name or scheme, we use a stand-in.
194-
$requestUri = parse_url('http://example.com' . $env->get('REQUEST_URI'), PHP_URL_PATH);
195-
$requestUri = rawurldecode($requestUri);
193+
$requestUri = $env->get('REQUEST_URI');
196194

197195
// Query string
198196
$queryString = $env->get('QUERY_STRING', '');

0 commit comments

Comments
 (0)