When using the extended [url=] BBCode to also use custom content for the link it is not possible to have linebreaks in it. The following usages will never validate:
This is because in /includes/message_parser.php, function bbcode_init() we have:
...whereas the match pattern misses linebreaks.
I have two possible workarounds:
- adding the s modifier (but this will in first place also allow URLs with linebreaks):
- or indirectly allowing linebreaks by not allowing a character which should never occur (NUL):