SECURITY: check magic bytes before using ImageMagick tools

This commit is contained in:
Régis Hanol
2016-05-03 21:54:07 +02:00
parent b061ba5c52
commit df14926e42
4 changed files with 13 additions and 5 deletions

View File

@ -63,7 +63,7 @@ describe Upload do
it "computes width & height for images" do
ImageSizer.expects(:resize)
image.expects(:rewind).twice
image.expects(:rewind).times(3)
Upload.create_for(user_id, image, image_filename, image_filesize)
end