mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 17:51:45 +08:00
Sanitizing @Display(Model) usage
--HG-- branch : dev
This commit is contained in:
@@ -9,6 +9,7 @@ using Orchard.Core.Routable.Services;
|
||||
using Orchard.Data;
|
||||
using Orchard.DisplayManagement;
|
||||
using Orchard.Localization;
|
||||
using Orchard.Mvc;
|
||||
using Orchard.Services;
|
||||
using Orchard.Themes;
|
||||
|
||||
@@ -59,8 +60,7 @@ namespace Orchard.Core.Routable.Controllers {
|
||||
}
|
||||
|
||||
dynamic model = _contentManager.BuildDisplay(hits.Single());
|
||||
// Casting to avoid invalid (under medium trust) reflection over the protected View method and force a static invocation.
|
||||
return View((object)model);
|
||||
return new ShapeResult(this, model);
|
||||
}
|
||||
|
||||
public ActionResult Slugify(string contentType, int? id, int? containerId) {
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
@Display(Model)
|
||||
Reference in New Issue
Block a user