Download & Extend

colons not handled in urls

Project:Bbcode
Version:master
Component:Code
Category:bug report
Priority:normal
Assigned:naudefj
Status:closed (fixed)

Issue Summary

The BBcode module doesn't include any text after a ":" in a url string that is within [url=abc] tags.

Here's an example:
http://en.wikibooks.org/wiki/Transwiki:How_to_learn_a_language

That gets cut down to:
http://en.wikibooks.org/wiki/Transwiki

One option, as a middle step, is to allow users to optionally use quotation marks in the bbcode url tags to specify the whole url. (This is probably a good idea anyway, even if the bug is fixed some other way. This way, users who are used to using quote marks in href's aren't too inconvenienced.)

Comments

#1

All the regexps in bbcode-filter.inc have this (?::\w+)? fragment inside the [ ] tags (even end tags). These just strip out any :suffix, they aren't used in the output at all... anyone know the purpose of these? [url:test]www.test.com[/url:anything]
Simply remove this fragment from the line for [url=.... tags and an url with a colon will work.

#2

Version:<none>» master
Assigned to:Anonymous» naudefj
Status:active» fixed

Fixed in CVS.

#3

Status:fixed» closed (fixed)