diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2010-07-02 13:41:52 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2010-07-15 13:05:56 +0200 |
commit | 8690d25b4fab47853bcab46fc07ee577569c6822 (patch) | |
tree | c0c9e6308dafc5e1d1b838cbb31476fb41a90b7f /phpBB/includes/functions_user.php | |
parent | b7ae0fe4e91be1f7dc1d38d2c3c1e5b043d95739 (diff) | |
download | forums-8690d25b4fab47853bcab46fc07ee577569c6822.tar forums-8690d25b4fab47853bcab46fc07ee577569c6822.tar.gz forums-8690d25b4fab47853bcab46fc07ee577569c6822.tar.bz2 forums-8690d25b4fab47853bcab46fc07ee577569c6822.tar.xz forums-8690d25b4fab47853bcab46fc07ee577569c6822.zip |
[ticket/9504] Allow whitespaces in gallery avatars
Gallery avatars are discovered on the server filesystem; to allow linking to
the images, the filenames are urlencoded before being written to the database.
However, getimagesize needs the decoded filename as input.
PHPBB3-9504
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r-- | phpBB/includes/functions_user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 271542efdd..f58e19ddbe 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -2348,7 +2348,7 @@ function avatar_process_user(&$error, $custom_userdata = false) } else { - list($sql_ary['user_avatar_width'], $sql_ary['user_avatar_height']) = getimagesize($phpbb_root_path . $config['avatar_gallery_path'] . '/' . $category . '/' . $sql_ary['user_avatar']); + list($sql_ary['user_avatar_width'], $sql_ary['user_avatar_height']) = getimagesize($phpbb_root_path . $config['avatar_gallery_path'] . '/' . $category . '/' . urldecode($sql_ary['user_avatar'])); $sql_ary['user_avatar'] = $category . '/' . $sql_ary['user_avatar']; } } |