mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-21 05:48:41 +00:00
bug fixes from the day before
This commit is contained in:
parent
e25b309171
commit
a2f067920c
|
|
@ -288,7 +288,13 @@ final class UriFactory
|
|||
$parsed = \preg_replace_callback('(\{[\/#\?%@\.\$][a-zA-Z0-9\-]*\})', function ($match) use ($toMatch) {
|
||||
$match = \substr($match[0], 1, \strlen($match[0]) - 2);
|
||||
|
||||
return $toMatch[$match] ?? self::$uri[$match] ?? '---';
|
||||
return $toMatch[$match]
|
||||
?? (self::$uri[$match] ?? (
|
||||
($match[0] ?? '') === '?'
|
||||
? '---' // only do this for query parameters
|
||||
: ''
|
||||
)
|
||||
);
|
||||
}, $uri);
|
||||
|
||||
return self::unique($parsed ?? '');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user