This is a known bug. See:

http://issues.apache.org/bugzilla/show_bug.cgi?id=30686

--
Martin Cooper


On Thu, 30 Dec 2004 17:59:55 +0000 (GMT), Duncan Lyall
<[EMAIL PROTECTED]> wrote:
> Sorry about that last one .... I'll try again
> 
> I have the following code
> 
> String[] schemes = {"http","https"};
> UrlValidator urlValidator = new UrlValidator(schemes);
> String url = "http://www.foo.com";;
> if (urlValidator.isValid(url)) {
>       System.out.println("url is valid");
> }
> else {
>       System.out.println("url is invalid");
> }
> 
> this FAILS validation
> 
> if I change the url to
> http://www.foo.com/x it passes ?
> 
> I'm confused. What is wrong with http://www.foo.com ?
> 
> I've checked the wiki and the faq
> 
> Cheers
> Duncan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to