1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-07 16:15:22 +02:00

[ticket/10963] Removed superfluous ternary statement and strpos now stricter

PHPBB3-10963
This commit is contained in:
Fyorl 2012-06-19 13:27:27 +01:00
parent 03ddfbbaf1
commit f208b59c59

View File

@ -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);
}
/**