Skip to content

Commit

Permalink
Issue #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 committed Jun 26, 2023
1 parent e3e22e2 commit b349841
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 b349841

Please sign in to comment.