Make sure that if we fail to read the App13 (iptc) block of a JPG file, that that...
authorBrian Wolff <bawolff@users.mediawiki.org>
Thu, 5 Jan 2012 23:25:39 +0000 (23:25 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Thu, 5 Jan 2012 23:25:39 +0000 (23:25 +0000)
commitf9173cb902cac38f75bf6525e0f8d861d50de8cc
tree0f4829cb1f23c59b381554be033b772c9e3c87e0
parent66830a6cfc4279e7562258bcfa6a4fe975696c14
Make sure that if we fail to read the App13 (iptc) block of a JPG file, that that doesn't block other metadata from being read. Also makes sure if more then one app13 block is in the file, they are all read, not just the last one that appears in the file (This required some changes to tests since before the intermediate value was just one value, now its an array of all such blocks)
RELEASE-NOTES-1.19
includes/media/BitmapMetadataHandler.php
includes/media/JpegMetadataExtractor.php
tests/phpunit/data/media/iptc-invalid-psir.jpg [new file with mode: 0644]
tests/phpunit/includes/media/BitmapMetadataHandlerTest.php
tests/phpunit/includes/media/JpegMetadataExtractorTest.php