>
>
> ACF 10's isvalid("url") says that this is not a valid URL. What's your
> favorite alternative to isvalid("url")?
>
>
> http://www.domain.com/page.php?var=value&var=value&var=http://www.domain.com/path/page.htm&var=value


Just to be clear... it's saying it's not a valid URL because it's *not* a
valid URL. You need to encode some of the characters in "
http://www.domain.com/path/page.htm
<http://www.domain.com/page.php?var=value&var=value&var=http://www.domain.com/path/page.htm&var=value>"
for it to be a valid value in a URL query string. The RFC is pretty clear
on this (http://tools.ietf.org/html/rfc3986#appendix-A). Once you deal with
that, then the URL passes validation.

"Interestingly" (stretching the definition a bit) ColdFusion 11 has a
regression here: it passes your dodgy string as a valid URL. Railo does too.

-- 
Adam


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359210
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to