diff options
author | nikrou <nikrou@piwigo.org> | 2010-07-03 12:22:58 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2010-07-03 12:22:58 +0000 |
commit | 6656dfb06aaf3d2b0da7625680bb033d4bdf3856 (patch) | |
tree | 75e25a80cf9c9c90b6fbc00f19561083c7eb8989 /picture.php | |
parent | b83df6be6877b167571c68dc71765cd4f979e9e9 (diff) |
Bug 1755 fixed : Needs single quotes in queries official plugins
Merge from trunk
git-svn-id: http://piwigo.org/svn/branches/2.1@6655 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'picture.php')
-rw-r--r-- | picture.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/picture.php b/picture.php index 2a3e994f4..7ab38f0f0 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 |