aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_upload.php
diff options
context:
space:
mode:
authorFyorl <gaelreth@gmail.com>2012-06-19 13:27:27 +0100
committerFyorl <gaelreth@gmail.com>2012-07-02 23:49:40 +0100
commitf208b59c5984e686a3589eb83d5edb0b69bc020b (patch)
tree5b2517764a867a00253bbace1c2e8d86e85e78fe /phpBB/includes/functions_upload.php
parent03ddfbbaf1ba078df16638c642f8a3a9d8ca8c1c (diff)
downloadforums-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.php2
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);
}
/**