mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Medium Trust: Disabling reflection optimizer and making DLLs under 4.0 .NET FX SecurityTransparent (for secannotate analysis) and APTCA (for secannotate to be happy) after discussing with Levi.
--HG-- branch : dev
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -13,8 +13,14 @@
|
||||
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor" requirePermission="false" />
|
||||
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
|
||||
<section name="hibernate-configuration" requirePermission="false" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" />
|
||||
</configSections>
|
||||
|
||||
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
|
||||
<reflection-optimizer use="false"/>
|
||||
</hibernate-configuration>
|
||||
|
||||
<appSettings>
|
||||
<!--
|
||||
This is a workaround. There’s a known issue that causes Forms Authentication to always redirect unauthenticated users
|
||||
|
@@ -19,7 +19,6 @@ namespace Orchard.Environment.Extensions.Compilers {
|
||||
_buildManager = buildManager;
|
||||
}
|
||||
|
||||
[SecuritySafeCritical]
|
||||
public CompilerResults CompileProject(string location) {
|
||||
var codeProvider = CodeDomProvider.CreateProvider("cs");
|
||||
|
||||
|
@@ -23,7 +23,6 @@ namespace Orchard.Environment.Extensions.Compilers {
|
||||
/// Compile a csproj file given its virtual path. Use the CSharp CodeDomProvider
|
||||
/// class, which is only available in full trust.
|
||||
/// </summary>
|
||||
[SecuritySafeCritical]
|
||||
public CompilerResults CompileProject(string virtualPath, string outputDirectory) {
|
||||
var codeProvider = CodeDomProvider.CreateProvider("cs");
|
||||
var directory = _virtualPathProvider.GetDirectoryName(virtualPath);
|
||||
|
@@ -37,5 +37,4 @@ using System.Security;
|
||||
|
||||
[assembly: AssemblyVersion("0.8.0")]
|
||||
[assembly: AssemblyFileVersion("0.8.0")]
|
||||
[assembly: AllowPartiallyTrustedCallers]
|
||||
[assembly: SecurityRules(SecurityRuleSet.Level2)]
|
||||
[assembly: SecurityTransparent]
|
Reference in New Issue
Block a user