elharo opened a new issue, #355:
URL: https://github.com/apache/maven-filtering/issues/355

   In `src/main/java/org/apache/maven/shared/filtering/FilteringUtils.java`, 
lines 81–100:
   
   The regex `^(.*)[a-zA-Z]:\\\\\\(.*)` only matches absolute Windows paths 
containing a drive letter. Relative paths with backslashes (e.g., 
`src\\main\\java`) are never escaped. The single/double backslash deduplication 
logic at line 90 (`if (val.indexOf('\\', end + 1) == end + 1)`) also means that 
`C:\\foo\\bar` and `C:\\foo\\\\bar` both produce the same output 
`C:\\\\\\\\foo\\\\\\\\bar` — information is lost about whether the original had 
single or double backslashes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to