summaryrefslogtreecommitdiff
path: root/api/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'api/index.php')
-rw-r--r--api/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/index.php b/api/index.php
index 737ce8abf..633b11a75 100644
--- a/api/index.php
+++ b/api/index.php
@@ -207,7 +207,7 @@
break;
case "updateArticle":
- $article_ids = split(",", db_escape_string($_REQUEST["article_ids"]));
+ $article_ids = array_filter(explode(",", db_escape_string($_REQUEST["article_ids"])), is_numeric);
$mode = (int) db_escape_string($_REQUEST["mode"]);
$field_raw = (int)db_escape_string($_REQUEST["field"]);