mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-04-30 18:42:43 +02:00
fixes #1010 prevent from SQL injection with user input check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user