You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2019/01/30 13:39:00 UTC

[jira] [Closed] (VALIDATOR-453) UrlValidator.isValidPath does not support unicode characters

     [ https://issues.apache.org/jira/browse/VALIDATOR-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed VALIDATOR-453.
------------------------------------
    Resolution: Won't Fix

Such paths aren't compliant with current RFCs. If you need that for some reason, go with a custom parser.

> UrlValidator.isValidPath does not support unicode characters
> ------------------------------------------------------------
>
>                 Key: VALIDATOR-453
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-453
>             Project: Commons Validator
>          Issue Type: Bug
>          Components: Routines
>    Affects Versions: 1.6
>            Reporter: Leo-Andreas Ervik
>            Priority: Major
>              Labels: Unicode, UrlValidator
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> LinkedIn allows unicode characters such as æøå in their urls, which fails due to the PATH_REGEX using only w
> Old:
> {code:java}
> private static final String PATH_REGEX = "^(/[-\\w:@&?=+,.!/~*'%$_;\\(\\)]*)?$";
> {code}
> New:
> {code:java}
> private static final String PATH_REGEX = "^(/[-\\w\\pL:@&?=+,.!/~*'%$_;\\(\\)]*)?$";
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)