Add input checks for Language::sprintfDate()
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Thu, 25 Apr 2013 07:58:39 +0000 (09:58 +0200)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 26 Apr 2013 08:05:18 +0000 (10:05 +0200)
commit35f0a66f32ee99f7eb348526db1e6cc4301f4ab1
tree0ba7744627fe0900cea935c77cd09ffaa3edb960
parentf9f2e9701374dbae9a88bcf84d25bcf5061d1153
Add input checks for Language::sprintfDate()

Check if the timestamp has a length of 14 characters and if it is numeric.
Throw an exception otherwise. Includes tests.

Bug: 47629
Change-Id: I9a4fd0af88cf20c2a6bd72fd7048743466c1600f
languages/Language.php
tests/phpunit/languages/LanguageTest.php