aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-05-28 15:36:27 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-05-28 15:36:27 +0200
commited064ce0f16a31c1803791e13f7051a39860f59d (patch)
tree968e421d3bcb18691c5d6d451ae5305eb55dfd1e /phpBB
parent45d7e18f6b9fb6669be8ac287e3c06eb4c6e66fe (diff)
downloadforums-ed064ce0f16a31c1803791e13f7051a39860f59d.tar
forums-ed064ce0f16a31c1803791e13f7051a39860f59d.tar.gz
forums-ed064ce0f16a31c1803791e13f7051a39860f59d.tar.bz2
forums-ed064ce0f16a31c1803791e13f7051a39860f59d.tar.xz
forums-ed064ce0f16a31c1803791e13f7051a39860f59d.zip
[ticket/13799] Do not rawurlencode category in gallery avatar
Otherwise the directory seperator will incorrectly be transformed to its HTML replacement. PHPBB3-13799
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/phpbb/avatar/driver/local.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/avatar/driver/local.php b/phpBB/phpbb/avatar/driver/local.php
index 36087f8ba0..f19daa6b75 100644
--- a/phpBB/phpbb/avatar/driver/local.php
+++ b/phpBB/phpbb/avatar/driver/local.php
@@ -182,7 +182,7 @@ class local extends \phpbb\avatar\driver\driver
}
$cat = ($path == $file_path) ? $user->lang['NO_AVATAR_CATEGORY'] : str_replace("$path/", '', $file_path);
$avatar_list[$cat][$image] = array(
- 'file' => ($cat != $user->lang['NO_AVATAR_CATEGORY']) ? rawurlencode($cat) . '/' . rawurlencode($image) : rawurlencode($image),
+ 'file' => ($cat != $user->lang['NO_AVATAR_CATEGORY']) ? $cat . '/' . rawurlencode($image) : rawurlencode($image),
'filename' => rawurlencode($image),
'name' => ucfirst(str_replace('_', ' ', preg_replace('#^(.*)\..*$#', '\1', $image))),
'width' => $dims[0],