If you enter a URL as:
url] http://www.scirra.com[/url |
It renders as:
It doesn't render a valid URL. (Note the space char before URL) In the format post functions I've changed it to render URLs with regex and it fixes this issue:
Dim regEx Set regEx = New RegExp
With regEx .Pattern = "\[url\]\s*([^\]]+)\s*\[\/url\]" .IgnoreCase = True .Global = True End With strMessage = regEx.Replace(strMessage, "<a href=""$1"">$1</a>")
With regEx .Pattern = "\[url=\s*([^\]]+)\s*\]\s*([^\]]+)\s*\[\/url\]" .IgnoreCase = True .Global = True End With strMessage = regEx.Replace(strMessage, "<a href=""$1"">$2</a>")
Set regEx = nothing |
Only a small bug but my server emails me 404's, and for some reason a lot of my users seem to be posting urls which render with %20 infront of them