Forum Feedback and Support Post forum feedback and related problems, here.

URL parsing issues

Old 04-17-01, 01:13 PM
  #1  
Mod Emeritus
Thread Starter
 
Join Date: Feb 1999
Location: Central Vermont
Posts: 3,883
I've noticed that auto creation of URL links that the vB software does has at least one issue (maybe more).

The url is truncated if there is a comma in it. I see these on a regular basis (especially news articles), so it would be a good idea if they could fix it. Bellow is an example.

Incorrect:
http://www.eonline.com/News/Items/0,1,6462,00.html

Correct (w/ vB code):
http://www.eonline.com/News/Items/0,1,6462,00.html

Correct (w/ HTML code):
<a href="http://www.eonline.com/News/Items/0,1,6462,00.html" tergat=_blank>http://www.eonline.com/News/Items/0,1,6462,00.html</a>

I've also seen some cases where the really long URLs get truncated even when manually typing in the vB code (only HTML code works in those cases).
Jason Northrup is offline  
Old 04-17-01, 01:17 PM
  #2  
DVD Talk Reviewer/ Admin
 
Adam Tyner's Avatar
 
Join Date: Sep 1999
Location: Greenville, South Cackalack
Posts: 21,701
Commas are used as a delimiter in vBulletin, which means that specific parsing quirk isn't a bug -- it's a feature.
Adam Tyner is online now  
Old 04-17-01, 01:23 PM
  #3  
Mod Emeritus
Thread Starter
 
Join Date: Feb 1999
Location: Central Vermont
Posts: 3,883
Originally posted by ctyner
Commas are used as a delimiter in vBulletin, which means that specific parsing quirk isn't a bug -- it's a feature.
Even so, it's a dumb idea because commas are used often enough in URLs that they shouldn't be used as a delimiter. Perhaps a better idea is to use a comma followed by a whitespace (or other non-valid url character) as the delimiter.
Jason Northrup is offline  
Old 04-17-01, 01:44 PM
  #4  
Stealth Moderator
 
namja's Avatar
 
Join Date: Oct 1999
Location: In Transit, HQ
Posts: 24,988
Jason, when typing in the URL correctly in vB, you don't have to repeat the link inside the code like:

[u<B></b>rl="ht<b></b>tp://www.eonline.com/News/Items/0,1,6462,00.html"]ht<b></b>tp://www.eonline.com/News/Items/0,1,6462,00.html[/u<b></b>rl]


Instead all you have to do is to just add [ur<b></b>l] and a [/u<b></b>rl] at the beginning/end of the URL like:

[u<b></b>rl]ht<b></b>tp://www.eonline.com/News/Items/0,1,6462,00.html[/u<b></b>rl]


Both will give you http://www.eonline.com/News/Items/0,1,6462,00.html.


Yeah, it's still a pain, but easier than repeating the URL.




[Edited by namja on 04-17-01 at 10:47 AM]
namja is offline  
Old 04-17-01, 01:46 PM
  #5  
DVD Talk Reviewer/ Admin
 
Adam Tyner's Avatar
 
Join Date: Sep 1999
Location: Greenville, South Cackalack
Posts: 21,701
Jason,

You'll be pleased to know that both the comma parsing issue and the lengthy URL problem are corrected in vBulletin 2.x. Just did some testing and it worked fine...

-Adam
Adam Tyner is online now  
Old 04-17-01, 08:16 PM
  #6  
Mod Emeritus
Thread Starter
 
Join Date: Feb 1999
Location: Central Vermont
Posts: 3,883
Originally posted by namja
Jason, when typing in the URL correctly in vB, you don't have to repeat the link inside the code like:

[u<i></i>rl="ht<b></b>tp://www.eonline.com/News/Items/0,1,6462,00.html"]ht<b></b>tp://www.eonline.com/News/Items/0,1,6462,00.html[/u<i></i>rl]


Instead all you have to do is to just add [ur<b></b>l] and a [/u<i></i>rl] at the beginning/end of the URL like:

[u<i></i>rl]ht<i></i>tp://www.eonline.com/News/Items/0,1,6462,00.html[/u<i></i>rl]

Yeah, I was just doing the links that way as examples of what should happen with the automation.
Jason Northrup is offline  
Old 04-17-01, 08:34 PM
  #7  
Registered
 
GeoffK's Avatar
 
Join Date: Jan 1999
Location: Marblehead, MA
Posts: 6,948
2.0 is close to being a released product. We're doing some testing with Release Candidate 1 and it worked great....

GeoffK is offline  
Old 04-18-01, 10:08 AM
  #8  
DVD Talk Special Edition
 
Join Date: Jun 2000
Location: Orlando, FL, USA
Posts: 1,216
Since we are on the subject I just have to ask....

Who in the world came up with the idea to use commas in an URL and transversely, why in the world would anyone make a comma a legitimate character for URL parsing?

As a programmer I only see this as a problem... like quotes in a database.
BadAsh is offline  
Old 04-18-01, 10:12 AM
  #9  
DVD Talk Reviewer/ Admin
 
Adam Tyner's Avatar
 
Join Date: Sep 1999
Location: Greenville, South Cackalack
Posts: 21,701
Same here, Ash.

Regardless, the issue's corrected in vBulletin 2.0.
Adam Tyner is online now  
Old 04-18-01, 01:14 PM
  #10  
DVD Talk Platinum Edition
 
Join Date: Sep 1999
Location: Seattle, Washington, America the Beautiful
Posts: 3,767
It will be interesting if the other autoURL bug (or is it feature?) has been fixed. When I put an italic designator in front of a URL and the end-italic designator at the end of an automatic URL, the URL will be displayed, but it will not be automatic.

Actually, I've used that as a "feature" before. So, maybe I am not at all hot to change this.
Startide is offline  
Old 04-18-01, 01:19 PM
  #11  
DVD Talk Platinum Edition
 
Join Date: Sep 1999
Location: Seattle, Washington, America the Beautiful
Posts: 3,767
<font color=blue>Originally posted by BadAsh:
Who in the world came up with the idea to use commas in an URL and transversely, why in the world would anyone make a comma a legitimate character for URL parsing? As a programmer I only see this as a problem... like quotes in a database.<font color=black>

Some of the database-oriented webpage generators make webpages using the comma as the separator instead of using spaces, dashes, or underscores to build a URL. Perhaps some of these companies had their input to Microsoft when MS was seeking input from various companies during the design of Win95. The Operating System was seeking to be as compatible with everyone as possible. As you know, there are other weird characters allowed in URL and directory names as well....

If you could roll the clock way back, then perhaps you could eliminate the allowed use of comma.
Startide is offline  

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Thread Tools
Search this Thread

Archive Advertising Cookie Policy Privacy Statement Terms of Service

Copyright 2018 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.