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
This commit is contained in:
nikrou
2010-07-03 12:22:58 +00:00
parent b83df6be68
commit 6656dfb06a
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -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