summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorator-dev <dominic.codedeveloper@gmail.com>2023-03-21 19:20:52 +0000
committerYuri Sizov <yuris@humnom.net>2023-03-27 17:45:09 +0200
commit9a3b52dc2d1591de7e2fcc537e5f230c28a84fb0 (patch)
tree3d5fbb37542f7a9e3745c4f25986c74c9b53b29f /platform
parentce4ab719576c27b2eeb2f783ebff2862d6b58f57 (diff)
Fix "Download Project Source" for Web Editor
- Correctly pass safe project name and safe datetime to `vformat` (cherry picked from commit dfb405b702b61cb3a8656f53eb85016608621b57)
Diffstat (limited to 'platform')
-rw-r--r--platform/web/api/web_tools_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/web/api/web_tools_editor_plugin.cpp b/platform/web/api/web_tools_editor_plugin.cpp
index 146a48db81..213204ff33 100644
--- a/platform/web/api/web_tools_editor_plugin.cpp
+++ b/platform/web/api/web_tools_editor_plugin.cpp
@@ -75,7 +75,7 @@ void WebToolsEditorPlugin::_download_zip() {
const String project_name_safe = project_name.to_lower().replace(" ", "_");
const String datetime_safe =
Time::get_singleton()->get_datetime_string_from_system(false, true).replace(" ", "_");
- const String output_name = OS::get_singleton()->get_safe_dir_name(vformat("%s_%s.zip"));
+ const String output_name = OS::get_singleton()->get_safe_dir_name(vformat("%s_%s.zip", project_name_safe, datetime_safe));
const String output_path = String("/tmp").path_join(output_name);
zipFile zip = zipOpen2(output_path.utf8().get_data(), APPEND_STATUS_CREATE, nullptr, &io);