mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-09 11:24:35 +02:00
[ticket/10963] Removed superfluous ternary statement and strpos now stricter
PHPBB3-10963
This commit is contained in:
@ -154,7 +154,7 @@ class filespec
|
||||
$finfo = new finfo(FILEINFO_MIME_TYPE);
|
||||
$mimetype = $finfo->file($this->filename);
|
||||
|
||||
return (strpos($mimetype, 'image/') !== false) ? true : false;
|
||||
return (strpos($mimetype, 'image/') === 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user