r91222 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91221‎ | r91222 | r91223 >
Date:21:14, 30 June 2011
Author:hashar
Status:ok
Tags:
Comment:
test that wfUrlencode() encodes apostrophe
Modified paths:
  • /trunk/phase3/tests/phpunit/includes/GlobalFunctions/wfUrlencodeTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/GlobalFunctions/wfUrlencodeTest.php
@@ -118,6 +118,9 @@
119119 // Other 'funnies' chars
120120 array( '[]', '%5B%5D' ),
121121 array( '<>', '%3C%3E' ),
 122+
 123+ // Apostrophe is encoded
 124+ array( '\'', '%27' ),
122125 );
123126 }
124127 }

Status & tagging log