Message: Correct output of wfMessage( 'non-existent-msg' )->text()
authorErik Bernhardson <ebernhardson@wikimedia.org>
Wed, 4 Jun 2014 21:06:03 +0000 (14:06 -0700)
committerKrinkle <krinklemail@gmail.com>
Tue, 23 Sep 2014 21:06:22 +0000 (21:06 +0000)
commitc9a3ecef59c10403e045d828392838262823db03
tree45bd7c11effd224b706c2231a6ab01f66e12cd76
parent73167127eab47ec15541a511ba1e6190afb9ce92
Message: Correct output of wfMessage( 'non-existent-msg' )->text()

The output of Message::text() should always be acceptable to pass into
external html escaping, such as when the response is returned over an
API request and escaped by the client side code. Calling ->text() on a
non-existent key was returning the entity encoded value which leads to
double encoding down the line, this patch fixes that oversight.

Bug: 66199
Change-Id: Ieec94d4e4c7e5c36e5e68bbf01792e96368e54e0
includes/Message.php
tests/phpunit/includes/MessageTest.php