mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-10 17:45:18 +02:00
[ticket/13799] Do not rawurlencode category in gallery avatar
Otherwise the directory seperator will incorrectly be transformed to its HTML replacement. PHPBB3-13799
This commit is contained in:
parent
45d7e18f6b
commit
ed064ce0f1
@ -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);
|
$cat = ($path == $file_path) ? $user->lang['NO_AVATAR_CATEGORY'] : str_replace("$path/", '', $file_path);
|
||||||
$avatar_list[$cat][$image] = array(
|
$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),
|
'filename' => rawurlencode($image),
|
||||||
'name' => ucfirst(str_replace('_', ' ', preg_replace('#^(.*)\..*$#', '\1', $image))),
|
'name' => ucfirst(str_replace('_', ' ', preg_replace('#^(.*)\..*$#', '\1', $image))),
|
||||||
'width' => $dims[0],
|
'width' => $dims[0],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user