Merge pull request #854 from Spijkerboer/UKFest-U4-7322

Uk fest u4 7322
This commit is contained in:
Shannon Deminick
2015-11-19 19:26:53 +01:00

View File

@@ -112,14 +112,17 @@ namespace umbraco
foreach (var attributeValueItem in attributeValueSplit)
{
attributeValue = attributeValueItem;
var trimmedValue = attributeValue.Trim();
// Check for special variables (always in square-brackets like [name])
if (attributeValueItem.StartsWith("[") &&
attributeValueItem.EndsWith("]"))
if (trimmedValue.StartsWith("[") &&
trimmedValue.EndsWith("]"))
{
attributeValue = trimmedValue;
// find key name
var keyName = attributeValueItem.Substring(2, attributeValueItem.Length - 3);
var keyType = attributeValueItem.Substring(1, 1);
var keyName = attributeValue.Substring(2, attributeValue.Length - 3);
var keyType = attributeValue.Substring(1, 1);
switch (keyType)
{