1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 20:24:08 +02:00

Merge pull request #5227 from rubencm/ticket/15671

[ticket/15671] Limit accepted formats for avatar upload
This commit is contained in:
Marc Alexander
2018-06-29 11:41:57 +02:00
committed by GitHub
3 changed files with 3 additions and 2 deletions

View File

@@ -92,6 +92,7 @@ class upload extends \phpbb\avatar\driver\driver
$template->assign_vars(array(
'S_UPLOAD_AVATAR_URL' => ($this->config['allow_avatar_remote_upload']) ? true : false,
'AVATAR_UPLOAD_SIZE' => $this->config['avatar_filesize'],
'AVATAR_ALLOWED_EXTENSIONS' => implode(',', preg_replace('/^/', '.', $this->allowed_extensions)),
));
return true;