aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
Diffstat (limited to 'picture.php')
-rw-r--r--picture.php4
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