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

       Web browser: ---
             Bug #: 30883
           Summary: Internal links with URL-encoded square brackets are
                    not parsed into wiki links
           Product: MediaWiki
           Version: 1.17
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: Parser
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: fastgoldf...@gmail.com
    Classification: Unclassified


URL-encoded square brackets in an internal link are not correctly parsed into a
link. External links ARE correctly parsed.

These work, and are correctly parsed into external links:

[http://someurl.com/SomePage?&q=someParameter]

[http://someurl.com/SomePage?&q=%5BsomeParameter%3A]

[http://someurl.com/SomePage?&q=%5B%5BsomeParameter%3A%3A]

These work, and are correctly parsed into internal links:

[[SomePage?&q=someParameter]]

These do NOT work, and not parsed into internal links:

[[SomePage?&q=%5BsomeParameter%3A]]

[[SomePage?&q=%5B%5BsomeParameter%3A%3A]]

The only ones that do not work are internal links with URL-encoded square
brackets. The culprits are the left bracket [ encoded as %5B and the right
bracket encoded as %3A. 

It does not seem to matter how many, in what order, etc. If %5B or %3A exist in
the internal link URL, the link will not be parsed into an internal wiki link.
The problem does not occur for external links.

I marked this bug as "major", but not "critical", because the bug can be worked
around by changing internal links to external links (with the full URL) until
the bug is fixed. However, since only a few of the most proactive site
administrators are likely to read this bug report, this should be considered a
critical bug for ordinary MediaWiki users, and casual administrators that don't
read bug reports.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to