[
https://issues.apache.org/jira/browse/IO-585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17358604#comment-17358604
]
Gary D. Gregory edited comment on IO-585 at 6/7/21, 1:38 PM:
-------------------------------------------------------------
[~adammcclenaghan]
PR merged, please verify git master.
TY!
was (Author: garydgregory):
[~adammcclenaghan]
Please verify git master.
TY!
> FilenameUtils#normalizeNoEndSeparator does not sanitize multiple backslashes
> directly after the colon in windows file paths
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: IO-585
> URL: https://issues.apache.org/jira/browse/IO-585
> Project: Commons IO
> Issue Type: Bug
> Affects Versions: 2.6
> Reporter: Adam McClenaghan
> Priority: Minor
> Fix For: 2.10.0
>
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> FilenameUtils#normalizeNoEndSeparator states in the javadoc that :
> "A double slash will be merged to a single slash (but UNC names are
> handled)."
> It has been observed that if a double backslash occurs after the colon in a
> windows filepath, then the returned path still contains this double
> backslash. For example:
> {code:java}
> C:\\Program Files\\ExampleDirectory --> C:\\Program Files\ExampleDirectory
> {code}
> While the expectation is that we should be returning ' C:\Program
> Files\ExampleDirectory '
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)