Merge pull request #1366 from aphofstede/2.1-stable

Check cookie against md5 regex. 2.1 stable CSRF injection security fix
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index b0490de..0e5d73b 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -868,6 +868,10 @@
 			{
 				return TRUE; // its an image, no "triggers" detected in the first 256 bytes, we're good
 			}
+			else
+			{
+				return FALSE;
+			}
 		}
 
 		if (($data = @file_get_contents($file)) === FALSE)