https://bugzilla.wikimedia.org/show_bug.cgi?id=52492

       Web browser: ---
            Bug ID: 52492
           Summary: {{#titleparts}} fails on URLs with URL encoded
                    characters
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: ParserFunctions
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Consider the URL
> //en.wikipedia.org/w/index.php?title=Test&action=edit&section=new&preloadtitle={{urlencode|Enter
>  heading!}}|1}}

which expands to
> //en.wikipedia.org/w/index.php?title=Test&action=edit&section=new&preloadtitle=Enter+heading%21


Titleparts will fail on this (perfectly fine) URL when calling
> {{#titleparts://en.wikipedia.org/w/index.php?title=Test&action=edit&section=new&preloadtitle=Enter+heading%21|1}}

Actually it should return an empty string (as the URL is protocol relative) and
that's actually what #titleparts does as soon as one removes the "%21" from the
URL.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to