summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorSimon Rettberg2017-10-06 18:00:43 +0200
committerSimon Rettberg2017-10-06 18:00:43 +0200
commit0b22b1d8a316e4cd324c3fa1cdbc24ab1294bf93 (patch)
tree1a23c4abb031ea29bf8736bca6d7a9663986b109 /index.php
parent[runmode] Support returning associative array (diff)
downloadslx-admin-0b22b1d8a316e4cd324c3fa1cdbc24ab1294bf93.tar.gz
slx-admin-0b22b1d8a316e4cd324c3fa1cdbc24ab1294bf93.tar.xz
slx-admin-0b22b1d8a316e4cd324c3fa1cdbc24ab1294bf93.zip
Allow page modules with digits in name
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index a3f45ff3..4b1302a6 100644
--- a/index.php
+++ b/index.php
@@ -70,7 +70,7 @@ abstract class Page
public static function init()
{
$name = empty($_REQUEST['do']) ? 'Main' : $_REQUEST['do'];
- $name = preg_replace('/[^A-Za-z_]/', '', $name);
+ $name = preg_replace('/[^A-Za-z0-9_]/', '', $name);
$name = strtolower($name);
Module::init();
self::$module = Module::get($name);