diff options
author | Simon Rettberg | 2017-11-03 13:17:02 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-11-03 13:17:02 +0100 |
commit | 6c27cb92f365952619e745707bf26c332ee1c6fc (patch) | |
tree | e55c8fd08ecadca0b568fa47c40909aa26588ae6 /api.php | |
parent | [dnbd3] Improve server sorting, main-warning, errormsg, Taskmanager intergration (diff) | |
download | slx-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.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) === '--') { |