// Token: 0x0600012A RID: 298 RVA: 0x00005080 File Offset: 0x00003280
        internal static bool NeedToFilterHtml(string contentType, string fileExtension, AttachmentPolicyLevel level, ConfigurationContextBase configurationContext)
        {
            bool flag  = AttachmentUtilities.IsHtmlAttachment(contentType, fileExtension);
            bool flag2 = AttachmentPolicyLevel.ForceSave == level;
            bool flag3 = configurationContext.IsFeatureEnabled(Feature.ForceSaveAttachmentFiltering);

            return(flag && (!flag2 || flag3));
        }
 // Token: 0x0600012B RID: 299 RVA: 0x000050B5 File Offset: 0x000032B5
 internal static bool GetDoNotSniff(AttachmentPolicyLevel level, ConfigurationContextBase configurationContext)
 {
     if (configurationContext == null)
     {
         throw new ArgumentNullException("configurationContext");
     }
     return(AttachmentPolicyLevel.ForceSave == level && !configurationContext.IsFeatureEnabled(Feature.ForceSaveAttachmentFiltering));
 }