Browse Source

Fix split allow empty string in SSH export plugin

daviirodrig 2 years ago
parent
commit
240374c58f

+ 2 - 2
platform/linuxbsd/export/export_plugin.cpp

@@ -378,8 +378,8 @@ Error EditorExportPlatformLinuxBSD::run(const Ref<EditorExportPreset> &p_preset,
 	if (port.is_empty()) {
 	if (port.is_empty()) {
 		port = "22";
 		port = "22";
 	}
 	}
-	Vector<String> extra_args_ssh = p_preset->get("ssh_remote_deploy/extra_args_ssh").operator String().split(" ");
-	Vector<String> extra_args_scp = p_preset->get("ssh_remote_deploy/extra_args_scp").operator String().split(" ");
+	Vector<String> extra_args_ssh = p_preset->get("ssh_remote_deploy/extra_args_ssh").operator String().split(" ", false);
+	Vector<String> extra_args_scp = p_preset->get("ssh_remote_deploy/extra_args_scp").operator String().split(" ", false);
 
 
 	const String basepath = dest.path_join("tmp_linuxbsd_export");
 	const String basepath = dest.path_join("tmp_linuxbsd_export");
 
 

+ 2 - 2
platform/macos/export/export_plugin.cpp

@@ -2016,8 +2016,8 @@ Error EditorExportPlatformMacOS::run(const Ref<EditorExportPreset> &p_preset, in
 	if (port.is_empty()) {
 	if (port.is_empty()) {
 		port = "22";
 		port = "22";
 	}
 	}
-	Vector<String> extra_args_ssh = p_preset->get("ssh_remote_deploy/extra_args_ssh").operator String().split(" ");
-	Vector<String> extra_args_scp = p_preset->get("ssh_remote_deploy/extra_args_scp").operator String().split(" ");
+	Vector<String> extra_args_ssh = p_preset->get("ssh_remote_deploy/extra_args_ssh").operator String().split(" ", false);
+	Vector<String> extra_args_scp = p_preset->get("ssh_remote_deploy/extra_args_scp").operator String().split(" ", false);
 
 
 	const String basepath = dest.path_join("tmp_macos_export");
 	const String basepath = dest.path_join("tmp_macos_export");
 
 

+ 2 - 2
platform/windows/export/export_plugin.cpp

@@ -831,8 +831,8 @@ Error EditorExportPlatformWindows::run(const Ref<EditorExportPreset> &p_preset,
 	if (port.is_empty()) {
 	if (port.is_empty()) {
 		port = "22";
 		port = "22";
 	}
 	}
-	Vector<String> extra_args_ssh = p_preset->get("ssh_remote_deploy/extra_args_ssh").operator String().split(" ");
-	Vector<String> extra_args_scp = p_preset->get("ssh_remote_deploy/extra_args_scp").operator String().split(" ");
+	Vector<String> extra_args_ssh = p_preset->get("ssh_remote_deploy/extra_args_ssh").operator String().split(" ", false);
+	Vector<String> extra_args_scp = p_preset->get("ssh_remote_deploy/extra_args_scp").operator String().split(" ", false);
 
 
 	const String basepath = dest.path_join("tmp_windows_export");
 	const String basepath = dest.path_join("tmp_windows_export");