Fixes bug 383, inserting macro parameters with quotes fails in macrocontainer

This commit is contained in:
Michael Wulff Nielsen
2012-11-20 09:29:38 -01:00
parent 68fc833280
commit 72ef5b01d2
7 changed files with 61 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using Umbraco.Core.Macros;
using umbraco.interfaces;
@@ -47,7 +48,7 @@ namespace Umbraco.Core.ObjectResolution
/// </remarks>
internal string GetValueFromMacroControl(Control macroControl)
{
return ((IMacroGuiRendering)macroControl).Value;
return HttpUtility.HtmlDecode(((IMacroGuiRendering)macroControl).Value);
}
/// <remarks>
@@ -74,7 +75,7 @@ namespace Umbraco.Core.ObjectResolution
{
if (!string.IsNullOrEmpty(prop.Value))
{
instance.Value = prop.Value;
instance.Value = HttpUtility.HtmlDecode(prop.Value);
}
var macroControl = instance as Control;
if (macroControl != null)