PDA

View Full Version : [fixed] Bug v.2.3.0-prior: "Nested" auto-generated [url] tags.


Paul
Mon 26th May '03, 10:33pm
Hi all,

Couldn't find this previously reported on the site. Search terms are set to greater than four characters (url is only three). I would have tried a more exhaustive set of searching parameters, but this being a holiday, I decided to give myself the night off. ;)

Quick testing on vbulletin.com with the wysiwyg editor on and off suggests that vbulletin3 is not affected by this bug.

Steps to reproduce:
Type the following into a post with "Automatically parse URLs" selected to yes: [ url=www.site.com ]Go visit www.site.com[/url] (sans spacing, of course)
Submit.


The above example outputs <a href="http://www.site.com">Go visit <a href="http://www.site.com">www.site.com</a></a>.

You must type text preceding the web address for this to crop up.

Paul

Paul
Wed 28th May '03, 3:02pm
This *is* still a bug ;) Please don't make me decipher that regex ;)

Steve Machol
Wed 28th May '03, 3:07pm
Moved to Bugs for a Dev to check.

Mike Sullivan
Tue 5th Aug '03, 1:04pm
This is a bit of a tricky bug, but I think I've worked it out for most cases.

In admin/functions.php, add the code in red:
"/([^]_a-z0-9-=\"'\/])((https?|ftp|gopher|news|telnet):\/\/|www\.)([^ \r\n\(\)\^\$!`\"'\|\[\]\{\}<>]*)(?![^[]*\[\/url\])/si",