From ac8a83177fd177d8dfe6cb22882b8d68e89a4812 Mon Sep 17 00:00:00 2001 From: Nikolaj Date: Thu, 26 Aug 2021 14:21:40 +0200 Subject: [PATCH] Make AutoInterningStringKeyCaseInsensitiveDictionaryConverter case insensitive Instead of calling the parents CreateDictionary we just newed up a regular dictionary leading to AutoInterningStringKeyCaseInsensitiveDictionaryConverter not actually being case insensitive --- ...utoInterningStringKeyCaseInsensitiveDictionaryConverter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Core/Serialization/AutoInterningStringKeyCaseInsensitiveDictionaryConverter.cs b/src/Umbraco.Core/Serialization/AutoInterningStringKeyCaseInsensitiveDictionaryConverter.cs index 2076462f0c..f40b4b9f10 100644 --- a/src/Umbraco.Core/Serialization/AutoInterningStringKeyCaseInsensitiveDictionaryConverter.cs +++ b/src/Umbraco.Core/Serialization/AutoInterningStringKeyCaseInsensitiveDictionaryConverter.cs @@ -7,7 +7,7 @@ using Newtonsoft.Json.Converters; namespace Umbraco.Core.Serialization { /// - /// When applied to a dictionary with a string key, will ensure the deserialized string keys are interned + /// When applied to a dictionary with a string key, will ensure the deserialized string keys are interned /// /// /// @@ -26,7 +26,7 @@ namespace Umbraco.Core.Serialization { if (reader.TokenType == JsonToken.StartObject) { - var dictionary = new Dictionary(); + var dictionary = Create(objectType); while (reader.Read()) { switch (reader.TokenType)