From af8020b3885266a963583b465be58b557c928368 Mon Sep 17 00:00:00 2001 From: Fyorl Date: Sun, 8 Jul 2012 01:24:27 +0100 Subject: [PATCH] [ticket/10941] Fixed a failing test Since the is_image change, the filespec class no longer trusts the browser's reported mimetype and instead checks the file itself. Thus pretending a text file had the mimetype of an image will no longer fail, the file will simply not be treated as an image. PHPBB3-10941 --- tests/uploads/filespec_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/uploads/filespec_test.php b/tests/uploads/filespec_test.php index e91819142a..fe642ea24c 100644 --- a/tests/uploads/filespec_test.php +++ b/tests/uploads/filespec_test.php @@ -237,7 +237,7 @@ class phpbb_filespec_test extends phpbb_test_case return array( array('gif_copy', 'gif_moved', 'image/gif', 'gif', false, true), array('non_existant', 'still_non_existant', 'text/plain', 'txt', 'GENERAL_UPLOAD_ERROR', false), - array('txt_copy', 'txt_as_img', 'image/jpg', 'txt', 'UNABLE_GET_IMAGE_SIZE', true), + array('txt_copy', 'txt_as_img', 'image/jpg', 'txt', false, true), array('txt_copy_2', 'txt_moved', 'text/plain', 'txt', false, true), array('jpg_copy', 'jpg_moved', 'image/png', 'jpg', false, true), array('png_copy', 'png_moved', 'image/png', 'jpg', 'IMAGE_FILETYPE_MISMATCH', true),