Skip to content
Snippets Groups Projects
Commit 52ebaf93 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

api/updateArticle: validate article_ids parameter (refs #375)

parent e894e97f
No related branches found
No related tags found
No related merge requests found
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
break; break;
case "updateArticle": 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"]); $mode = (int) db_escape_string($_REQUEST["mode"]);
$field_raw = (int)db_escape_string($_REQUEST["field"]); $field_raw = (int)db_escape_string($_REQUEST["field"]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment