Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-420

Query params validator shouldn't accept whitespaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.0 Release
    • 1.6
    • None
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            marcin.gasior@gmail.com Marcin Gasior
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: