php-mediawiki-tuleap

Clone or download

Read-only

fix: Uploading a photo in MW does not work with PHP8

If an image contains Exif metadata such as `ShutterSpeedValue: 5321/1000`, then the upload of this file into Mediawiki fails. This is due because 5321 and 1000 are extracted as strings via `preg_match` and are given to [`abs`][1] that is only accepting `int` or `float` arguments. Upstream [is already fixed][2]. Part of request #23444: Unable to upload a photo to Mediawiki [1]: https://www.php.net/abs [2]: https://github.com/wikimedia/mediawiki/commit/75b2aafb6f3e6802491f8a9bdb3f0a856598ed5d

Modified Files

Name
M mediawiki-1.23.9/includes/media/Exif.php +1 −1 Go to diff View file
M php-mediawiki-tuleap.spec +1 −1 Go to diff View file