You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Prevent using name with leading dot when create/rename/duplicate scene/folder/script/resource
Fixes #62497
This commit is contained in:
@@ -110,6 +110,11 @@ void SceneCreateDialog::update_dialog(Variant p_discard) {
|
||||
is_valid = false;
|
||||
}
|
||||
|
||||
if (is_valid && scene_name[0] == '.') {
|
||||
update_error(file_error_label, MSG_ERROR, TTR("File name begins with a dot."));
|
||||
is_valid = false;
|
||||
}
|
||||
|
||||
if (is_valid) {
|
||||
scene_name = directory.plus_file(scene_name);
|
||||
DirAccessRef da = DirAccess::create(DirAccess::ACCESS_RESOURCES);
|
||||
|
||||
Reference in New Issue
Block a user