From: Kunal Mehta Date: Sat, 9 Aug 2014 10:51:11 +0000 (+0100) Subject: JSONContent: Add HTML escaping test from EventLogging X-Git-Tag: 1.31.0-rc.0~14506 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=010da99caff7c3b8b339ae2ce85cf5f57f1ebc7b;p=lhc%2Fweb%2Fwiklou.git JSONContent: Add HTML escaping test from EventLogging Change-Id: I73908c7614b39bdab953aec079c8dfb991fa463b --- diff --git a/tests/phpunit/includes/content/JSONContentTest.php b/tests/phpunit/includes/content/JSONContentTest.php index df8d2e2651..ec745749b6 100644 --- a/tests/phpunit/includes/content/JSONContentTest.php +++ b/tests/phpunit/includes/content/JSONContentTest.php @@ -106,6 +106,10 @@ class JSONContentTest extends MediaWikiLangTestCase { "\n" . '0"bar"' ), + array( + array( ''), + '
0"<script>alert("evil!")</script>"
', + ), ); }