1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Quote and escape ConfigFile keys when necessary

(cherry picked from commit 597d489a20)
This commit is contained in:
Haoyu Qiu
2021-08-28 13:00:10 +08:00
committed by Rémi Verschelde
parent 138e995177
commit 758428dd9f

View File

@@ -196,7 +196,7 @@ Error ConfigFile::_internal_save(FileAccess *file) {
String vstr;
VariantWriter::write_to_string(F.get(), vstr);
file->store_string(F.key() + "=" + vstr + "\n");
file->store_string(F.key().property_name_encode() + "=" + vstr + "\n");
}
}