mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +02:00
Bug 1733 fixed : single quotes in queries
git-svn-id: http://piwigo.org/svn/trunk@6550 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -92,8 +92,8 @@ if (isset($_POST['submit']))
|
||||
if (isset($_POST['image_order_subcats']))
|
||||
{
|
||||
$query = '
|
||||
UPDATE '.CATEGORIES_TABLE.' SET image_order='.(isset($image_order) ? 'NULL':"'$image_order'").'
|
||||
WHERE uppercats LIKE "'.$cat_info['uppercats'].',%"';
|
||||
UPDATE '.CATEGORIES_TABLE.' SET image_order='.(isset($image_order) ? 'NULL':'\''.$image_order.'\'').'
|
||||
WHERE uppercats LIKE \''.$cat_info['uppercats'].',%\'';
|
||||
pwg_query($query);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user