Skip to content

Commit

Permalink
Issue eclipse-tycho#2589 Strip asterisk (*) characters from URIs
Browse files Browse the repository at this point in the history
This character is illegal in Windows file paths.
  • Loading branch information
gab1one authored and laeubi committed Jun 27, 2023
1 parent f0bbdfe commit dbb779b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public File getCacheFile(HttpTransportFactory transportFactory)

private synchronized CacheLine getCacheLine(URI uri) {
String cleanPath = uri.normalize().toASCIIString().replace(':', '/').replace('?', '/').replace('&', '/')
.replaceAll("/+", "/");
.replace('*', '/').replaceAll("/+", "/");
if (cleanPath.endsWith("/")) {
// simulate accessing this as a folder...
// this can happen in case of a redirect even though its quite clumsy
Expand Down

0 comments on commit dbb779b

Please sign in to comment.