mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/10963] Removed superfluous ternary statement and strpos now stricter
PHPBB3-10963
This commit is contained in:
parent
03ddfbbaf1
commit
f208b59c59
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue