mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 00:53:04 +02:00
bug 3089: prevent SQL injection on photo edition
git-svn-id: http://piwigo.org/svn/trunk@28678 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -155,6 +155,7 @@ if (isset($_POST['submit']))
|
||||
{
|
||||
$_POST['associate'] = array();
|
||||
}
|
||||
check_input_parameter('associate', $_POST, true, PATTERN_ID);
|
||||
move_images_to_categories(array($_GET['image_id']), $_POST['associate']);
|
||||
|
||||
invalidate_user_cache();
|
||||
@@ -164,6 +165,7 @@ if (isset($_POST['submit']))
|
||||
{
|
||||
$_POST['represent'] = array();
|
||||
}
|
||||
check_input_parameter('represent', $_POST, true, PATTERN_ID);
|
||||
|
||||
$no_longer_thumbnail_for = array_diff($represented_albums, $_POST['represent']);
|
||||
if (count($no_longer_thumbnail_for) > 0)
|
||||
|
||||
Reference in New Issue
Block a user