Fixes: U4-4654 7.1.1 InsertMacroController unescapes objects to string
This commit is contained in:
@@ -48,8 +48,8 @@ namespace Umbraco.Core
|
||||
internal static bool DetectIsJson(this string input)
|
||||
{
|
||||
input = input.Trim();
|
||||
return input.StartsWith("{") && input.EndsWith("}")
|
||||
|| input.StartsWith("[") && input.EndsWith("]");
|
||||
return (input.StartsWith("{") && input.EndsWith("}"))
|
||||
|| (input.StartsWith("[") && input.EndsWith("]"));
|
||||
}
|
||||
|
||||
internal static string ReplaceNonAlphanumericChars(this string input, char replacement)
|
||||
|
||||
Reference in New Issue
Block a user