[ 
http://issues.apache.org/jira/browse/VALIDATOR-205?page=comments#action_12452193
 ] 
            
Niall Pemberton commented on VALIDATOR-205:
-------------------------------------------

The regular expression in RFC 3986 is already being used by UrlValidator - see 
the URL_PATTERN static variable.

Also reading RFC 3986 [1] it has the following definition for path:

"segment" and "segment-nz" make up the path. Both of these are composed of any 
number of "pchar" characters which is defined as one of the following three 
categories "unreserved", "pct-encoded" or "sub-delims"

"sub-delims" includes the semi-colon i.e. ";"

So from what I can see the change you made, fixed the problem and we can close 
this as "invalid"?


[1] http://www.ietf.org/rfc/rfc3986.txt

> Improve handling of ; in paths
> ------------------------------
>
>                 Key: VALIDATOR-205
>                 URL: http://issues.apache.org/jira/browse/VALIDATOR-205
>             Project: Commons Validator
>          Issue Type: Improvement
>          Components: Routines
>            Reporter: Henri Yandell
>             Fix For: 1.4.0
>
>
> VALIDATOR-204 fixes a bug that a ; was not considered a valid character. It 
> does it by blanketedly accepting it as an okay character when in fact there 
> are proviso's and conditions surrounding the existence of a ; within a path. 
> RFC 3986 apparantly contains a regexp for urls, so might be useful to take 
> that and use it as a basis for this validator.
> Simplest case - improve the ; handling somehow.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to