Optimisations & fixes.

This commit is contained in:
slawkens
2021-12-05 10:33:31 +01:00
parent 468f59fbec
commit 7008c9f4d8
5 changed files with 20 additions and 20 deletions

View File

@@ -41,7 +41,7 @@ if($success) {
$page = $uri;
} else {
// old support for pages like /?subtopic=accountmanagement
$page = isset($_REQUEST['p']) ? $_REQUEST['p'] : (isset($_REQUEST['subtopic']) ? $_REQUEST['subtopic'] : '');
$page = $_REQUEST['p'] ?? ($_REQUEST['subtopic'] ?? '');
if(!empty($page) && preg_match('/^[A-z0-9\-]+$/', $page)) {
if(config('backward_support')) {
require SYSTEM . 'compat_pages.php';