mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-12 03:33:01 +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:
@@ -139,10 +139,10 @@ if (isset($_POST['submit']) and !is_adviser())
|
||||
$conf['extents_for_templates'] = serialize($replacements);
|
||||
$tpl_extension = $replacements;
|
||||
/* ecrire la nouvelle conf */
|
||||
$query = "
|
||||
UPDATE ".CONFIG_TABLE."
|
||||
SET value = '". $conf['extents_for_templates'] ."'
|
||||
WHERE param = 'extents_for_templates';";
|
||||
$query = '
|
||||
UPDATE '.CONFIG_TABLE.'
|
||||
SET value = \''. $conf['extents_for_templates'] .'\'
|
||||
WHERE param = \'extents_for_templates\';';
|
||||
if (pwg_query($query))
|
||||
{
|
||||
array_push($page['infos'],
|
||||
|
||||
Reference in New Issue
Block a user