From 010da99caff7c3b8b339ae2ce85cf5f57f1ebc7b Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sat, 9 Aug 2014 11:51:11 +0100 Subject: [PATCH] JSONContent: Add HTML escaping test from EventLogging Change-Id: I73908c7614b39bdab953aec079c8dfb991fa463b --- tests/phpunit/includes/content/JSONContentTest.php | 4 ++++ 1 file changed, 4 insertions(+) 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>"
', + ), ); } -- 2.20.1