aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-07-05 21:18:45 +0000
committernikrou <nikrou@piwigo.org>2010-07-05 21:18:45 +0000
commitb2d7edfc173228035f9dfadb73caa01e88b2b7e4 (patch)
tree154f59b930b21f43e0cbae7b9dc37502dec0d776 /admin
parent52c568327c190455bce75a9b9f6317d659ef8e6c (diff)
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
Diffstat (limited to 'admin')
-rw-r--r--admin/include/functions.php2
-rw-r--r--admin/include/functions_permalinks.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index 1d7fda97c..8b3861253 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -294,7 +294,7 @@ DELETE FROM '.$table.'
// destruction of the user
$query = '
DELETE FROM '.SESSIONS_TABLE.'
- WHERE data LIKE "pwg_uid|i:'.(int)$user_id.';%"
+ WHERE data LIKE \'pwg_uid|i:'.(int)$user_id.';%\'
;';
pwg_query($query);
diff --git a/admin/include/functions_permalinks.php b/admin/include/functions_permalinks.php
index a61ed32a0..4073970fd 100644
--- a/admin/include/functions_permalinks.php
+++ b/admin/include/functions_permalinks.php
@@ -47,7 +47,7 @@ function get_cat_id_from_old_permalink($permalink)
SELECT c.id
FROM '.OLD_PERMALINKS_TABLE.' op INNER JOIN '.CATEGORIES_TABLE.' c
ON op.cat_id=c.id
- WHERE op.permalink="'.$permalink.'"
+ WHERE op.permalink=\''.$permalink.'\'
LIMIT 1';
$result = pwg_query($query);
$cat_id = null;