diff options
author | Fyorl <gaelreth@gmail.com> | 2012-07-08 01:24:27 +0100 |
---|---|---|
committer | Fyorl <gaelreth@gmail.com> | 2012-07-09 14:08:20 +0100 |
commit | af8020b3885266a963583b465be58b557c928368 (patch) | |
tree | 8d79202f1d6a4f2dd1bf0132aa75459444e2151a /tests | |
parent | b65f08dd95de07405ed7f19fd980ca7d09925406 (diff) | |
download | forums-af8020b3885266a963583b465be58b557c928368.tar forums-af8020b3885266a963583b465be58b557c928368.tar.gz forums-af8020b3885266a963583b465be58b557c928368.tar.bz2 forums-af8020b3885266a963583b465be58b557c928368.tar.xz forums-af8020b3885266a963583b465be58b557c928368.zip |
[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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/uploads/filespec_test.php | 2 |
1 files changed, 1 insertions, 1 deletions
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), |