mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-07 08:05:25 +02:00
[ticket/10963] Removed superfluous ternary statement and strpos now stricter
PHPBB3-10963
This commit is contained in:
parent
03ddfbbaf1
commit
f208b59c59
@ -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…
x
Reference in New Issue
Block a user