From 758428dd9fb367dd67689db55df14ab1446630fd Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sat, 28 Aug 2021 13:00:10 +0800 Subject: [PATCH] Quote and escape ConfigFile keys when necessary (cherry picked from commit 597d489a20d3755dae4b92ac7667e058d68b3d83) --- core/io/config_file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/io/config_file.cpp b/core/io/config_file.cpp index da6c0c8bfcb..1c550e2937a 100644 --- a/core/io/config_file.cpp +++ b/core/io/config_file.cpp @@ -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"); } }