From 23a14b810a0fe2d6f9ba1767265d5f6e2702d135 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 30 Jun 2011 21:14:33 +0000 Subject: [PATCH] test that wfUrlencode() encodes apostrophe --- tests/phpunit/includes/GlobalFunctions/wfUrlencodeTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/phpunit/includes/GlobalFunctions/wfUrlencodeTest.php b/tests/phpunit/includes/GlobalFunctions/wfUrlencodeTest.php index 582fd35a4b..97a7844125 100644 --- a/tests/phpunit/includes/GlobalFunctions/wfUrlencodeTest.php +++ b/tests/phpunit/includes/GlobalFunctions/wfUrlencodeTest.php @@ -118,6 +118,9 @@ class wfUrlencodeTest extends MediaWikiTestCase { // Other 'funnies' chars array( '[]', '%5B%5D' ), array( '<>', '%3C%3E' ), + + // Apostrophe is encoded + array( '\'', '%27' ), ); } } -- 2.20.1