From 324bdad746f97b257f904f4bef48e0c6bb30164f Mon Sep 17 00:00:00 2001 From: nikrou Date: Thu, 17 Jun 2010 18:10:11 +0000 Subject: Bug 1733 fixed : single quotes in queries git-svn-id: http://piwigo.org/svn/trunk@6550 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/extend_for_templates.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'admin/extend_for_templates.php') diff --git a/admin/extend_for_templates.php b/admin/extend_for_templates.php index 79321191e..a6cd56d92 100644 --- a/admin/extend_for_templates.php +++ b/admin/extend_for_templates.php @@ -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'], -- cgit v1.2.3