xyxc
This commit is contained in:
@@ -252,7 +252,12 @@ $page404 = $pagesBase . '/errorpages/404.php';
|
||||
if (str_starts_with($uriPath, 'modules/install')) {
|
||||
$target = $pagesBase . '/modules/install.php';
|
||||
} elseif (str_starts_with($uriPath, 'modules/setup/')) {
|
||||
$_GET['module'] = trim(substr($uriPath, strlen('modules/setup/')), '/');
|
||||
$setupPath = trim(substr($uriPath, strlen('modules/setup/')), '/');
|
||||
$setupParts = $setupPath === '' ? [] : explode('/', $setupPath, 2);
|
||||
$_GET['module'] = trim((string) ($setupParts[0] ?? ''));
|
||||
if (isset($setupParts[1]) && trim((string) $setupParts[1]) !== '') {
|
||||
$_GET['section'] = trim((string) $setupParts[1]);
|
||||
}
|
||||
$target = $pagesBase . '/modules/setup.php';
|
||||
} elseif (str_starts_with($uriPath, 'modules/access/')) {
|
||||
$_GET['module'] = trim(substr($uriPath, strlen('modules/access/')), '/');
|
||||
|
||||
Reference in New Issue
Block a user