commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcin Gasior (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (VALIDATOR-420) Query params validator shouldn't accept whitespaces
Date Thu, 16 Feb 2017 14:53:41 GMT

    [ https://issues.apache.org/jira/browse/VALIDATOR-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15870083#comment-15870083
] 

Marcin Gasior commented on VALIDATOR-420:
-----------------------------------------

Excellent, Thanks.

> Query params validator shouldn't accept whitespaces
> ---------------------------------------------------
>
>                 Key: VALIDATOR-420
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-420
>             Project: Commons Validator
>          Issue Type: Bug
>    Affects Versions: 1.4.0 Release
>            Reporter: Marcin Gasior
>             Fix For: 1.6
>
>
> I have noticed that query string regex /^(.*)$/ allows to input white space characters.

> eg.:
> http://example.com/serach?address=Main Avenue
> is a valid url due to validator, but java.net.URI.create will throw java.net.URISyntaxException:
Illegal character in query



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message