media: Ensure there ie enough data to extract software version
authorSébastien Santoro <dereckson@espace-win.org>
Thu, 12 Oct 2017 23:54:29 +0000 (23:54 +0000)
committerUmherirrender <umherirrender_de.wp@web.de>
Wed, 6 Dec 2017 21:16:17 +0000 (21:16 +0000)
commit241e741377818c2c16c930d26ceaf61dff607056
tree91eb99953406c102929edde2ee227f3ab933febe
parentda73659b2a0f89855a36bcefff08747ffe023be9
media: Ensure there ie enough data to extract software version

The Software EXIF / other metadata field was expected to contain
the software name followed by the version number.

There are occurences in Wikimedia production logs of errors showing
that's not always the case.

Bug: T178130
Change-Id: I4187a41b5fd8d7b5574ab50523668d8feb11bccc
includes/media/FormatMetadata.php
tests/phpunit/includes/media/FormatMetadataTest.php