fix: problem with pretty urls
This commit is contained in:
parent
dda410e92f
commit
8ea68b44fb
1 changed files with 2 additions and 2 deletions
|
@ -152,7 +152,7 @@ class URL
|
|||
$rewriteRule = $parts[1];
|
||||
$rewriteRule = ltrim($rewriteRule, '^');
|
||||
$rewriteRule = rtrim($rewriteRule, '$');
|
||||
$target = $parts[2];
|
||||
$target = ltrim($parts[2], '/?');
|
||||
$keys = array_map(
|
||||
function ($item) {
|
||||
return explode('=', $item)[0];
|
||||
|
@ -161,7 +161,7 @@ class URL
|
|||
);
|
||||
$flags = explode(',', substr($parts[3], 1, -1)) ?? array();
|
||||
|
||||
parse_str(ltrim($target, '/?'), $parameters);
|
||||
\parse_str(\parse_url($target, PHP_URL_QUERY), $parameters);
|
||||
/** */
|
||||
|
||||
/** Determine a potential URL. */
|
||||
|
|
Loading…
Reference in a new issue