Browse Source

[Linux] Fix downloading urls containing special characters

luboslenco 3 năm trước cách đây
mục cha
commit
38cb14cd1d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Sources/arm/sys/File.hx

+ 1 - 1
Sources/arm/sys/File.hx

@@ -77,7 +77,7 @@ class File {
 			done();
 		});
 		#elseif krom_linux
-		Krom.sysCommand('wget -O "' + dstPath + '" ' + url);
+		Krom.sysCommand('wget -O "' + dstPath + '" "' + url + '"');
 		done();
 		#else
 		Krom.sysCommand('curl -L ' + url + ' -o "' + dstPath + '"');