diff --git a/src/main/java/org/krews/apollyon/ftp/FTPUploadService.java b/src/main/java/org/krews/apollyon/ftp/FTPUploadService.java index 6e9950c..f26f7a2 100644 --- a/src/main/java/org/krews/apollyon/ftp/FTPUploadService.java +++ b/src/main/java/org/krews/apollyon/ftp/FTPUploadService.java @@ -6,6 +6,7 @@ import java.io.IOException; import java.io.OutputStream; import java.net.URL; import java.net.URLConnection; +import java.net.URLEncoder; public class FTPUploadService { private static final String ftpUrl = "ftp://%s:%s@%s/%s;type=i"; @@ -15,7 +16,7 @@ public class FTPUploadService { String user = Emulator.getConfig().getValue("ftp.user"); String pass = Emulator.getConfig().getValue("ftp.password"); - String uploadURL = String.format(ftpUrl, user, pass, host, uploadPath); + String uploadURL = String.format(ftpUrl, URLEncoder.encode(user, "UTF-8"), URLEncoder.encode(pass, "UTF-8"), host, uploadPath); URL url = new URL(uploadURL); URLConnection conn = url.openConnection(); diff --git a/target/Apollyon-1.jar b/target/Apollyon-1.jar index bd6a1a4..bf9298e 100644 Binary files a/target/Apollyon-1.jar and b/target/Apollyon-1.jar differ