From: Brian Wolff Date: Fri, 24 Dec 2010 10:24:16 +0000 (+0000) Subject: follow up to r78952 add parser tests relating to internal links with % encoding and... X-Git-Tag: 1.31.0-rc.0~33117 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=8c5cdb2a68efa422d537a00ec4cb481c7c28a79d;p=lhc%2Fweb%2Fwiklou.git follow up to r78952 add parser tests relating to internal links with % encoding and + signs in them. --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 75bc50dcfb..7b21f3f0f8 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -8141,6 +8141,16 @@ title=[[Main Page]] →__hello__world__ !! end +!! test +percent-encoding and + signs in comments (Bug 26410) +!! options +comment +!!input +[[ABC%33D% ++]] [[ABC%33D% ++|+%20]] +!! result +ABC3D% ++ +%20 +!! end + !! test Bad images - basic functionality !! input @@ -8327,6 +8337,20 @@ HTML5 data attributes !! end +!! test +percent-encoding and + signs in internal links (Bug 26410) +!! input +[[User:+%]] [[Page+title%]] +[[%+]] [[%+|%20]] [[%+ ]] [[%+r]] +[[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]] +[[%33%45]] [[%33%45+]] +!! result +

User:+% Page+title% +%+ %20 %+ %+r +% + bar +3E 3E+ +

+!! end TODO: more images