mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 22:18:40 +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) {
|
$parsed = \preg_replace_callback('(\{[\/#\?%@\.\$][a-zA-Z0-9\-]*\})', function ($match) use ($toMatch) {
|
||||||
$match = \substr($match[0], 1, \strlen($match[0]) - 2);
|
$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);
|
}, $uri);
|
||||||
|
|
||||||
return self::unique($parsed ?? '');
|
return self::unique($parsed ?? '');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user