[
https://issues.apache.org/jira/browse/VALIDATOR-453?focusedWorklogId=191767&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-191767
]
ASF GitHub Bot logged work on VALIDATOR-453:
--------------------------------------------
Author: ASF GitHub Bot
Created on: 29/Jan/19 16:11
Start Date: 29/Jan/19 16:11
Worklog Time Spent: 10m
Work Description: ervikleo commented on pull request #17: VALIDATOR-453
support unicode characters in paths
URL: https://github.com/apache/commons-validator/pull/17
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:@&?=+,.!/~*'%$_;\\(\\)]*)?$";
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 191767)
Time Spent: 10m
Remaining Estimate: 0h
> 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
> Fix For: 1.7
>
> Time Spent: 10m
> 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)