From b40876734302d9debe089061ba052139bc527fe9 Mon Sep 17 00:00:00 2001 From: Gravit Date: Fri, 28 Jun 2019 16:33:26 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=9F=D0=BE=D0=B4=D0=B4=D0=B5=D1=80?= =?UTF-8?q?=D0=B6=D0=BA=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B1=D0=B5=D0=BB=D0=BE?= =?UTF-8?q?=D0=B2=20=D0=B2=20=D0=BF=D0=B0=D0=BF=D0=BA=D0=B0=D1=85=20update?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../launchserver/websocket/json/update/UpdateResponse.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/websocket/json/update/UpdateResponse.java b/LaunchServer/src/main/java/pro/gravit/launchserver/websocket/json/update/UpdateResponse.java index 029181db..a40ba1a4 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/websocket/json/update/UpdateResponse.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/websocket/json/update/UpdateResponse.java @@ -9,6 +9,7 @@ import pro.gravit.launchserver.LaunchServer; import pro.gravit.launchserver.socket.Client; import pro.gravit.launchserver.websocket.json.SimpleResponse; +import pro.gravit.utils.helper.IOHelper; public class UpdateResponse extends SimpleResponse { public String dirName; @@ -38,7 +39,7 @@ public void execute(ChannelHandlerContext ctx, Client client) { service.sendObject(ctx, new ErrorRequestEvent(String.format("Directory %s not found", dirName))); return; } - String url = server.config.netty.downloadURL.replace("%dirname%", dirName); + String url = server.config.netty.downloadURL.replace("%dirname%", IOHelper.urlEncode(dirName)); boolean zip = false; if (server.config.netty.bindings.get(dirName) != null) { LaunchServer.NettyUpdatesBind bind = server.config.netty.bindings.get(dirName);