fixes typo on word disallow
This commit is contained in:
@@ -673,7 +673,7 @@ namespace Umbraco.Core.Configuration
|
||||
/// <summary>
|
||||
/// File types that will not be allowed to be uploaded via the content/media upload control
|
||||
/// </summary>
|
||||
public static IEnumerable<string> DissallowedUploadFiles
|
||||
public static IEnumerable<string> DisallowedUploadFiles
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
@@ -2283,7 +2283,9 @@
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="config\tinyMceConfig.config" />
|
||||
<Content Include="config\umbracoSettings.config" />
|
||||
<Content Include="config\umbracoSettings.config">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="config\xsltExtensions.config" />
|
||||
<Content Include="config\UrlRewriting.config" />
|
||||
<Content Include="config\log4net.config" />
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
<DocumentTypeIconList>HideFileDuplicates</DocumentTypeIconList>
|
||||
|
||||
<!-- These file types will not be allowed to be uploaded via the upload control for media and content -->
|
||||
<dissallowedUploadFiles>ashx,aspx,ascx,config,cshtml,vbhtml,asmx,air,axd</dissallowedUploadFiles>
|
||||
<disallowedUploadFiles>ashx,aspx,ascx,config,cshtml,vbhtml,asmx,air,axd</disallowedUploadFiles>
|
||||
</content>
|
||||
|
||||
<security>
|
||||
|
||||
@@ -285,9 +285,9 @@ namespace umbraco
|
||||
/// <summary>
|
||||
/// File types that will not be allowed to be uploaded via the content/media upload control
|
||||
/// </summary>
|
||||
public static IEnumerable<string> DissallowedUploadFiles
|
||||
public static IEnumerable<string> DisallowedUploadFiles
|
||||
{
|
||||
get { return Umbraco.Core.Configuration.UmbracoSettings.DissallowedUploadFiles; }
|
||||
get { return Umbraco.Core.Configuration.UmbracoSettings.DisallowedUploadFiles; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace umbraco.editorControls
|
||||
//now check the file type
|
||||
var extension = Path.GetExtension(postedFile.FileName).TrimStart(".");
|
||||
|
||||
return UmbracoSettings.DissallowedUploadFiles.Any(x => x.InvariantEquals(extension)) == false;
|
||||
return UmbracoSettings.DisallowedUploadFiles.Any(x => x.InvariantEquals(extension)) == false;
|
||||
}
|
||||
|
||||
public string Text
|
||||
|
||||
Reference in New Issue
Block a user