X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2FInstance.java;h=e0a072714a08a35b87f4342a0b4046c0abe0894c;hp=a2cb90aa637ea700554ada2b233c5aa2649c3bd7;hb=930a399d28b0cbe79c4b8d937b01ed0084c88c6b;hpb=c5e988207e92ec4ec39212012e4c31f0e02f06ec diff --git a/src/be/nikiroo/fanfix/Instance.java b/src/be/nikiroo/fanfix/Instance.java index a2cb90a..e0a0727 100644 --- 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); }