BBCode `url` tags break if wrapped text ends in URL with component after host

I’m not super familiar with this code, but I took a quick look. I think it has something to do with the auto-linkify system. By the time the parser goes looking for the close url tag [/url], it has already been incorporated into an autolink.

e.g. note that the autolink here is to http://example.com/foo%5B/url%5D

http://example.com/foo

That’s why adding the space helps - it prevents the autolink from including the [/url]

:thinking:

6 Likes