Allow SVGs encoded as WINDOWS-125[0-8].
authorBrian Wolff <bawolff+wn@gmail.com>
Mon, 1 Aug 2016 08:01:46 +0000 (08:01 +0000)
committerBrian Wolff <bawolff+wn@gmail.com>
Mon, 1 Aug 2016 11:34:05 +0000 (11:34 +0000)
commit4fd1f42d0b8f61fa970a5e1dbb37a0979a11e537
tree280f2f6c5c7d032ceeb56be557c72666ed792328
parent3823c900f15d75a218286d227506ae8877e944ca
Allow SVGs encoded as WINDOWS-125[0-8].

The check is meant to prevent weird encodings like UTF-7 or HZ.
Encodings like the WINDOWS-125X family which are extensions of ascii
are safe. Additionally people still use windows-1252 on rare occasion.

Bug: T72937
Change-Id: I6cd63274cc04a7fca3afd244b4122ea64042dced
includes/upload/UploadBase.php
tests/phpunit/includes/upload/UploadBaseTest.php