aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-07-03 12:20:38 +0000
committernikrou <nikrou@piwigo.org>2010-07-03 12:20:38 +0000
commit267c1c63a2e77ce74c41254e2f1a215b1f52e306 (patch)
tree3a6146693cebcb6a23c239f08ae92d7bcd61b0de /picture.php
parentdd955526ae97b8f830db2f499ab5c57efe874e5b (diff)
Bug 1755 : Needs single quotes in queries official plugins
git-svn-id: http://piwigo.org/svn/trunk@6654 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--picture.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/picture.php b/picture.php
index 2aa28f886..2fae0cda4 100644
--- a/picture.php
+++ b/picture.php
@@ -52,9 +52,9 @@ SELECT id, file, level
else
{// url given by file name
assert( !empty($page['image_file']) );
- $query .= 'file LIKE "' .
+ $query .= 'file LIKE \'' .
str_replace(array('_','%'), array('/_','/%'), $page['image_file'] ).
- '.%" ESCAPE "/" LIMIT 1';
+ '.%\' ESCAPE \'/\' LIMIT 1';
}
if ( ! ( $row = pwg_db_fetch_assoc(pwg_query($query)) ) )
{// element does not exist