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

UrlValidator.isValidPath does not support unicode characters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.6
    • None
    • Routines

    Description

      LinkedIn allows unicode characters such as æøå in their urls, which fails due to the PATH_REGEX using only w
      Old:

      private static final String PATH_REGEX = "^(/[-\\w:@&?=+,.!/~*'%$_;\\(\\)]*)?$";
      

      New:

      private static final String PATH_REGEX = "^(/[-\\w\\pL:@&?=+,.!/~*'%$_;\\(\\)]*)?$";
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              leonidas Leo-Andreas Ervik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m