SQL Server Central is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 

It Depends

Add to Technorati Favorites Add to Google
 

Flawed URL Validation and Not Eating Your Own Dog Food

By Andy Warren in It Depends | 09-25-2007 1:52 PM | Categories: Filed under:
Rating: (not yet rated) |  Discuss | 704 Reads | 99 Reads in Last 30 Days |no comments

MS includes a bunch of reasonably nice validation controls in VS 2005 and one of them includes the ability to validate that a string is a valid (syntactically) a URL. Sort of. If you don't prefix it with 'http://', it says it's invalid. I'd argue that we could just assume it's supposed to be there, but I guess erring on the side of caution is ok. But today, I was just about to post a link on www.opass.org about http://support.microsoft.com/default.aspx?scid=kb;en-us;912914&sd=rss&spid=2855 and the stupid control says it is not a valid URL, yet clearly I can browse to it! Possibly I'm missing some service pack, hot fix, or super secret turbo switch. Then again, maybe the MSDN guys don't use their own controls?

Comments
There are no comments on this post
Leave a Comment
Only members of SQLServerCentral may leave comments. Register now for your free account or Sign-In if you are already a member.