Merge pull request #6301 from Codinlab/fixes/5593

Fixes #5593 : Allow disabling HtmlEncode on DynamicForms
This commit is contained in:
Sébastien Ros
2016-02-18 12:55:31 -08:00
2 changed files with 1 additions and 2 deletions

View File

@@ -83,7 +83,6 @@ namespace Orchard.DynamicForms.Drivers {
Name: "HtmlEncode",
Title: "Html Encode",
Value: "true",
Checked: true,
Description: T("Check this option to automatically HTML encode submitted values to prevent code injection.")),
_CreateContent: shape.Checkbox(
Id: "CreateContent",

View File

@@ -33,7 +33,7 @@ namespace Orchard.DynamicForms.Elements {
}
public bool HtmlEncode {
get { return this.Retrieve(x => x.HtmlEncode, () => true); }
get { return this.Retrieve(x => x.HtmlEncode); }
set { this.Store(x => x.HtmlEncode, value); }
}