mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
fixes #1010 prevent from SQL injection with user input check
This commit is contained in:
+3
-1
@@ -31,7 +31,9 @@ if (isset($_POST['submit']))
|
|||||||
{
|
{
|
||||||
if (count($_POST['selection']) > 0)
|
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']);
|
move_categories($_POST['selection'], $_POST['parent']);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user