git://git.nikiroo.be
/
fanfix-swing.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5e9882
)
fix cache dir for new remote libs
author
Niki Roo
<niki@nikiroo.be>
Tue, 12 May 2020 13:59:55 +0000
(15:59 +0200)
committer
Niki Roo
<niki@nikiroo.be>
Tue, 12 May 2020 13:59:55 +0000
(15:59 +0200)
src/be/nikiroo/fanfix/Instance.java
patch
|
blob
|
blame
|
history
diff --git
a/src/be/nikiroo/fanfix/Instance.java
b/src/be/nikiroo/fanfix/Instance.java
index a2cb90aa637ea700554ada2b233c5aa2649c3bd7..e0a072714a08a35b87f4342a0b4046c0abe0894c 100644
(file)
--- a/
src/be/nikiroo/fanfix/Instance.java
+++ b/
src/be/nikiroo/fanfix/Instance.java
@@
-363,6
+363,11
@@
public class Instance {
remoteDir.mkdirs();
if (host != null) {
+ host = host.replace("fanfix://", "");
+ host = host.replace("http://", "");
+ host = host.replace("https://", "");
+ host = host.replaceAll("[^a-zA-Z0-9=+.-]", "_");
+
return new File(remoteDir, host);
}