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:
nikrou
2010-06-17 18:10:11 +00:00
parent c14850486a
commit 324bdad746
9 changed files with 36 additions and 36 deletions
+4 -4
View File
@@ -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'],