1
0

Increase error reporting and fix a few small warnings

Signed-off-by: Markus Birth <markus@birth-online.de>
This commit is contained in:
2025-06-14 17:58:36 +01:00
parent 56100cfd10
commit 4487199f16
6 changed files with 11 additions and 8 deletions

View File

@ -843,7 +843,7 @@ function serendipity_getUriArguments($uri, $wildcard = false) {
/* Explode the path into sections, to later be able to check for arguments and add our own */
preg_match('/^'. preg_quote($serendipity['serendipityHTTPPath'], '/') . '(' . preg_quote($serendipity['indexFile'], '/') . '\?\/)?(' . ($wildcard ? '.+' : '[!;,_a-z0-9\-*\/%\+]+') . ')/i', $uri, $_res);
if (strlen($_res[2] ?? null) != 0) {
if (strlen($_res[2] ?? '') != 0) {
$args = explode('/', $_res[2]);
if ($args[0] == $indexFile || $args[0] == $serendipity['indexFile']) {
unset($args[0]);