aboutsummaryrefslogtreecommitdiffstats
path: root/i.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2014-04-16 05:13:10 +0000
committerrvelices <rv-github@modusoptimus.com>2014-04-16 05:13:10 +0000
commitd1ac6441e8dd3067e546f884d82e151692f18eb3 (patch)
treec8d3b984dda852a036ab734351d1281d0673dbf9 /i.php
parentac316cee7109652edf2edeb715b8012a654433d2 (diff)
bug 2971: i.php should escape source location
git-svn-id: http://piwigo.org/svn/trunk@28198 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'i.php')
-rw-r--r--i.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/i.php b/i.php
index 8ca3b68c2..0d252be99 100644
--- a/i.php
+++ b/i.php
@@ -468,7 +468,7 @@ if (strpos($page['src_location'], '/pwg_representative/')===false
$query = '
SELECT *
FROM '.$prefixeTable.'images
- WHERE path=\''.$page['src_location'].'\'
+ WHERE path=\''.addslashes($page['src_location']).'\'
;';
if ( ($row=pwg_db_fetch_assoc(pwg_query($query))) )