aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-07-05 21:18:14 +0000
committernikrou <nikrou@piwigo.org>2010-07-05 21:18:14 +0000
commita9849aa9b661cce3563b5db1013d88091da4faa6 (patch)
treebdc081e24990f946a7ea270d65d10896532c8116 /plugins
parent531ee3537559c2a03220b189c17f9c96d73bafc5 (diff)
Bug 1763 fixed : [PostgreSQL] double quote used in queries
git-svn-id: http://piwigo.org/svn/trunk@6664 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--plugins/LocalFilesEditor/update_config.php4
1 files changed, 2 insertions, 2 deletions
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);
}