diff options
author | Fyorl <gaelreth@gmail.com> | 2012-06-19 13:27:27 +0100 |
---|---|---|
committer | Fyorl <gaelreth@gmail.com> | 2012-07-02 23:49:40 +0100 |
commit | f208b59c5984e686a3589eb83d5edb0b69bc020b (patch) | |
tree | 5b2517764a867a00253bbace1c2e8d86e85e78fe /phpBB/includes/functions_upload.php | |
parent | 03ddfbbaf1ba078df16638c642f8a3a9d8ca8c1c (diff) | |
download | forums-f208b59c5984e686a3589eb83d5edb0b69bc020b.tar forums-f208b59c5984e686a3589eb83d5edb0b69bc020b.tar.gz forums-f208b59c5984e686a3589eb83d5edb0b69bc020b.tar.bz2 forums-f208b59c5984e686a3589eb83d5edb0b69bc020b.tar.xz forums-f208b59c5984e686a3589eb83d5edb0b69bc020b.zip |
[ticket/10963] Removed superfluous ternary statement and strpos now stricter
PHPBB3-10963
Diffstat (limited to 'phpBB/includes/functions_upload.php')
-rw-r--r-- | phpBB/includes/functions_upload.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php index f3ae9d6cc4..aedf361000 100644 --- a/phpBB/includes/functions_upload.php +++ b/phpBB/includes/functions_upload.php @@ -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); } /** |