mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
Bug 1755 : Needs single quotes in queries official plugins
git-svn-id: http://piwigo.org/svn/trunk@6654 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user