From b2d7edfc173228035f9dfadb73caa01e88b2b7e4 Mon Sep 17 00:00:00 2001 From: nikrou Date: Mon, 5 Jul 2010 21:18:45 +0000 Subject: Bug 1763 fixed : [PostgreSQL] double quote used in queries Merge from trunk git-svn-id: http://piwigo.org/svn/branches/2.1@6665 68402e56-0260-453c-a942-63ccdbb3a9ee --- plugins/LocalFilesEditor/update_config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/LocalFilesEditor/update_config.php b/plugins/LocalFilesEditor/update_config.php index dee442a84..da181ec97 100644 --- a/plugins/LocalFilesEditor/update_config.php +++ b/plugins/LocalFilesEditor/update_config.php @@ -37,8 +37,8 @@ if (isset($_POST['editarea']) and in_array($_POST['editarea'], $possible_values) } $query = ' UPDATE ' . CONFIG_TABLE . ' -SET value = "' . $_POST['editarea'] . '" -WHERE param="LocalFilesEditor" +SET value = \'' . $_POST['editarea'] . '\' +WHERE param=\'LocalFilesEditor\' LIMIT 1'; pwg_query($query); } -- cgit v1.2.3