mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Quote and escape ConfigFile keys when necessary
(cherry picked from commit 597d489a20)
This commit is contained in:
committed by
Rémi Verschelde
parent
389e67aa98
commit
e46d54ebec
@@ -184,7 +184,7 @@ Error ConfigFile::_internal_save(FileAccess *file) {
|
||||
for (OrderedHashMap<String, Variant>::Element F = E.get().front(); F; F = F.next()) {
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user