You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2017/02/16 13:39:42 UTC
[jira] [Resolved] (VALIDATOR-420) Query params validator shouldn't
accept whitespaces
[ https://issues.apache.org/jira/browse/VALIDATOR-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb resolved VALIDATOR-420.
----------------------------
Resolution: Fixed
Fix Version/s: 1.6
Thanks for the report, fixed:
URL: http://svn.apache.org/viewvc?rev=1783203&view=rev
Log:
VALIDATOR-420 Query params validator shouldn't accept whitespaces
Modified:
commons/proper/validator/trunk/src/changes/changes.xml
commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/UrlValidator.java
commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/UrlValidatorTest.java
> 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)