// 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: 0x0600012C RID: 300 RVA: 0x000050DD File Offset: 0x000032DD internal static bool GetIsHtmlOrXml(string contentType, string fileExtension) { if (contentType == null) { throw new ArgumentNullException("contentType"); } return(AttachmentUtilities.IsXmlAttachment(contentType, fileExtension) || AttachmentUtilities.IsHtmlAttachment(contentType, fileExtension)); }