UBB Code parser bug

Status
Not open for further replies.

LocalYokel

Ars Scholae Palatinae
993
I believe that I was able to correct the bug after two edits here:
http://episteme.arstechnica.com/eve/forums?q=Y&a=tpc&s=50009562&f=12009443&m=499093709
This comes up when a URL w/o surrounding URL tags (something UBB is supposed to support) is at the end of a quote block.

I believe this will render properly:
Click below for
http://www.arstechnica.com/

And this will show the bug:
<BLOCKQUOTE>quote:<HR>Click below for
http://www.arstechnica.com/<HR></BLOCKQUOTE>
 

Smeghead

Ars Praefectus
4,725
Subscriptor
It's not so much a code parser bug as a problem with the way URL's are automagically picked up.

If you're going to use URL's, you either have to do it the safe, longwinded way and enclose them in URL tags, or always remember to have at least one whitespace character after the URL and before any following characters, just to be on the safe side.

For example, the biggest pain in the arse for a long, long time with this (which only affects those that actually use punctuation) is when you want to put a URL in at the end of a sentence or with reasonable punctuation. For example, if I want to direct someone to yahoo, I might tell them to go to http://www.yahoo.com, and hopefully they will.

The comma at the end of the above URL is supposed to be part of the sentence, but for a fair old while the automagic hypertextlinkifier(tm) grabbed punctuation after the intended link and included that in the HREF too.

Now, it's recently got a lot better. Punctiuation no longer seems to get grabbed (nice one, admins!), and life is a lot better for many of us. If the coders could work the same magic on UBB tags as they did with punctuation, this might be able to be solved fairly easily...

[This message was edited by Smeghead on February 16, 2001 at 15:25.]
 
Status
Not open for further replies.