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





--- Comment #6 from Tisza GergÅ‘ <[email protected]>  2009-06-26 16:22:51 UTC ---
Replacing [ and ] in the URL with %5B and %5D usually helps, but is technically
incorrect because these are reserved characters and shouldn't be urlencoded
(nor do most browsers urlencode them when you copy the URL from the address
bar), and it depends on the whim of the url processor whether the urlencoded
version will still point to the same resource.

A possible hack would be to change the regexp identifying the URL part: one
could take advantage of the fact that square brackets are in practice always
balanced in an url, aren't usually nested and are never at the end. It might be
possible to add something like (\[[-\w_+%]*\][-\w_+%?=]+)? to the end of the
URL regex to handle such links and still not mess up [1]-style automatically
numbered links.


-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to