summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) === '--') {