r104314 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104313‎ | r104314 | r104315 >
Date:21:47, 26 November 2011
Author:platonides
Status:resolved
Tags:
Comment:
Added parser test about brackets and for bug 21261
Modified paths:
  • /trunk/phase3/tests/parser/parserTests.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/parser/parserTests.txt
@@ -1189,6 +1189,29 @@
11901190 </p>
11911191 !! end
11921192
 1193+!! test
 1194+Brackets in urls
 1195+!! input
 1196+http://example.com/index.php?foozoid%5B%5D=bar
 1197+
 1198+http://example.com/index.php?foozoid&#x5B;&#x5D;=bar
 1199+!! result
 1200+<p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
 1201+</p><p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
 1202+</p>
 1203+!! end
 1204+
 1205+!! test
 1206+IPv6 urls (bug 21261)
 1207+!! options
 1208+disabled
 1209+!! input
 1210+http://[2404:130:0:1000::187:2]/index.php
 1211+!! result
 1212+<p><a rel="nofollow" class="external free" href="http://[2404:130:0:1000::187:2]/index.php">http://2404:130:0:1000::187:2/index.php</a>
 1213+</p>
 1214+!! end
 1215+
11931216 ###
11941217 ### Quotes
11951218 ###

Follow-up revisions

RevisionCommit summaryAuthorDate
r105356Follow up r104314 as noted in bug 21261 comment 9platonides21:27, 6 December 2011

Status & tagging log