From f208b59c5984e686a3589eb83d5edb0b69bc020b Mon Sep 17 00:00:00 2001
From: Fyorl <gaelreth@gmail.com>
Date: Tue, 19 Jun 2012 13:27:27 +0100
Subject: [PATCH] [ticket/10963] Removed superfluous ternary statement and
 strpos now stricter

PHPBB3-10963
---
 phpBB/includes/functions_upload.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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