mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 17:51:45 +08:00
Documenting the (object) cast to avoid dynamic invocation.
--HG-- branch : dev
This commit is contained in:
@@ -49,6 +49,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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user