Fixes: U4-4654 7.1.1 InsertMacroController unescapes objects to string

This commit is contained in:
Shannon
2014-04-14 18:32:28 +10:00
parent 5990a95d13
commit 4f5cae55c2
5 changed files with 91 additions and 13 deletions

View File

@@ -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)