|
|
@@ -5,6 +5,7 @@ using Masuit.LuceneEFCore.SearchEngine.Linq;
|
|
|
using Masuit.MyBlogs.Core.Common;
|
|
|
using Masuit.MyBlogs.Core.Configs;
|
|
|
using Masuit.MyBlogs.Core.Extensions;
|
|
|
+using Masuit.MyBlogs.Core.Extensions.Firewall;
|
|
|
using Masuit.MyBlogs.Core.Extensions.Hangfire;
|
|
|
using Masuit.MyBlogs.Core.Infrastructure;
|
|
|
using Masuit.MyBlogs.Core.Infrastructure.Repository;
|
|
|
@@ -33,7 +34,6 @@ using System.Linq.Dynamic.Core;
|
|
|
using System.Linq.Expressions;
|
|
|
using System.Text.RegularExpressions;
|
|
|
using System.Threading.Tasks;
|
|
|
-using Masuit.MyBlogs.Core.Extensions.Firewall;
|
|
|
|
|
|
namespace Masuit.MyBlogs.Core.Controllers
|
|
|
{
|
|
|
@@ -705,7 +705,7 @@ namespace Masuit.MyBlogs.Core.Controllers
|
|
|
post.Label = post.Label.Replace(",", ",");
|
|
|
}
|
|
|
|
|
|
- if (string.IsNullOrEmpty(post.ProtectContent) || post.ProtectContent.Equals("null", StringComparison.InvariantCultureIgnoreCase))
|
|
|
+ if (string.IsNullOrEmpty(post.ProtectContent?.RemoveHtmlTag()) || post.ProtectContent.Equals("null"))
|
|
|
{
|
|
|
post.ProtectContent = null;
|
|
|
}
|
|
|
@@ -782,7 +782,7 @@ namespace Masuit.MyBlogs.Core.Controllers
|
|
|
post.Label = post.Label.Replace(",", ",");
|
|
|
}
|
|
|
|
|
|
- if (string.IsNullOrEmpty(post.ProtectContent) || post.ProtectContent.Equals("null", StringComparison.InvariantCultureIgnoreCase))
|
|
|
+ if (string.IsNullOrEmpty(post.ProtectContent?.RemoveHtmlTag()) || post.ProtectContent.Equals("null"))
|
|
|
{
|
|
|
post.ProtectContent = null;
|
|
|
}
|