fixes #1010 prevent from SQL injection with user input check

This commit is contained in:
plegall
2019-08-12 16:24:27 +02:00
parent fccb6caa75
commit 91349065ea

View File

@@ -31,7 +31,9 @@ if (isset($_POST['submit']))
{
if (count($_POST['selection']) > 0)
{
// TODO: tests
check_input_parameter('selection', $_POST, true, PATTERN_ID);
check_input_parameter('parent', $_POST, false, PATTERN_ID);
move_categories($_POST['selection'], $_POST['parent']);
}
else