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

UrlValidator.isValidPath does not support unicode characters

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.6
    • Fix Version/s: None
    • Component/s: 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

              • Assignee:
                Unassigned
                Reporter:
                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