aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_upload.php
diff options
context:
space:
mode:
authorFyorl <gaelreth@gmail.com>2012-07-17 17:39:19 +0100
committerFyorl <gaelreth@gmail.com>2012-07-17 17:39:19 +0100
commite71474abb5e90d0aeee61d7d9a2d4648aed61426 (patch)
tree3003fb5a0eaee1b83e4d981a098f7f1c7395be82 /phpBB/includes/functions_upload.php
parent6aea4db6c7adbcee4fffa7cbc39564481fa6e211 (diff)
downloadforums-e71474abb5e90d0aeee61d7d9a2d4648aed61426.tar
forums-e71474abb5e90d0aeee61d7d9a2d4648aed61426.tar.gz
forums-e71474abb5e90d0aeee61d7d9a2d4648aed61426.tar.bz2
forums-e71474abb5e90d0aeee61d7d9a2d4648aed61426.tar.xz
forums-e71474abb5e90d0aeee61d7d9a2d4648aed61426.zip
[ticket/10944] strpos now stricter and removed superfluous ternary
PHPBB3-10944
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 f70e20e616..d4c6b42cf4 100644
--- a/phpBB/includes/functions_upload.php
+++ b/phpBB/includes/functions_upload.php
@@ -151,7 +151,7 @@ class filespec
*/
function is_image()
{
- return (strpos($this->mimetype, 'image/') !== false) ? true : false;
+ return (strpos($this->mimetype, 'image/') === 0);
}
/**