summaryrefslogtreecommitdiffstats
path: root/api.php
diff options
context:
space:
mode:
authorSimon Rettberg2017-11-03 13:17:02 +0100
committerSimon Rettberg2017-11-03 13:17:02 +0100
commit6c27cb92f365952619e745707bf26c332ee1c6fc (patch)
treee55c8fd08ecadca0b568fa47c40909aa26588ae6 /api.php
parent[dnbd3] Improve server sorting, main-warning, errormsg, Taskmanager intergration (diff)
downloadslx-admin-6c27cb92f365952619e745707bf26c332ee1c6fc.tar.gz
slx-admin-6c27cb92f365952619e745707bf26c332ee1c6fc.tar.xz
slx-admin-6c27cb92f365952619e745707bf26c332ee1c6fc.zip
api.php: Support numbers in module names
Diffstat (limited to 'api.php')
-rw-r--r--api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/api.php b/api.php
index c7508fbd..880285be 100644
--- a/api.php
+++ b/api.php
@@ -25,9 +25,9 @@ function isLocalExecution()
}
if (!empty($_REQUEST['do'])) {
- $module = preg_replace('/[^a-z]/', '', $_REQUEST['do']);
+ $module = preg_replace('/[^a-z0-9]/', '', $_REQUEST['do']);
} elseif (!empty($argv[1])) {
- $module = preg_replace('/[^a-z]/', '', $argv[1]);
+ $module = preg_replace('/[^a-z0-9]/', '', $argv[1]);
$argc = count($argv) - 1;
for ($i = 2; $i < $argc; ++$i) {
if (substr($argv[$i], 0, 2) === '--') {