mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 12:14:06 +02:00
[feature/avatars] Use array for allowed extensions and implode if needed
PHPBB3-10018
This commit is contained in:
@@ -54,7 +54,12 @@ abstract class phpbb_avatar_driver implements phpbb_avatar_driver_interface
|
||||
/**
|
||||
* Regex for allowed avatar image extensions
|
||||
*/
|
||||
const REGEX_ALLOWED_EXT = 'gif|jpg|jpeg|png';
|
||||
protected $allowed_extensions = array(
|
||||
'gif',
|
||||
'jpg',
|
||||
'jpeg',
|
||||
'png',
|
||||
);
|
||||
|
||||
/**
|
||||
* Construct a driver object
|
||||
|
Reference in New Issue
Block a user