You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-04 19:21:46 +00:00
Added a check for trailing dot when creating folder.
Merge the trailing dot test into existing test. Removed OS test.
This commit is contained in:
@@ -918,7 +918,7 @@ void FileSystemDock::_make_dir_confirm() {
|
||||
if (dir_name.length() == 0) {
|
||||
EditorNode::get_singleton()->show_warning(TTR("No name provided"));
|
||||
return;
|
||||
} else if (dir_name.find("/") != -1 || dir_name.find("\\") != -1 || dir_name.find(":") != -1) {
|
||||
} else if (dir_name.find("/") != -1 || dir_name.find("\\") != -1 || dir_name.find(":") != -1 || dir_name.ends_with(".")) {
|
||||
EditorNode::get_singleton()->show_warning(TTR("Provided name contains invalid characters"));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user