|
@@ -137,7 +137,9 @@ namespace Learun.Application.Web.Areas.LR_PortalSite.Controllers |
|
|
[HttpPost] |
|
|
[HttpPost] |
|
|
public ActionResult UploadFile(string keyValue, ArticleEntity entity) |
|
|
public ActionResult UploadFile(string keyValue, ArticleEntity entity) |
|
|
{ |
|
|
{ |
|
|
entity.F_Content = entity.F_Content.Replace("script",""); |
|
|
|
|
|
|
|
|
entity.F_Title= StringHelper.DelXss(entity.F_Title); |
|
|
|
|
|
entity.F_Content=StringHelper.DelXss(entity.F_Content); |
|
|
|
|
|
//entity.F_Content = entity.F_Content.Replace("script",""); |
|
|
HttpFileCollection files = System.Web.HttpContext.Current.Request.Files; |
|
|
HttpFileCollection files = System.Web.HttpContext.Current.Request.Files; |
|
|
//没有文件上传,直接返回 |
|
|
//没有文件上传,直接返回 |
|
|
if (files[0].ContentLength == 0 || string.IsNullOrEmpty(files[0].FileName)) |
|
|
if (files[0].ContentLength == 0 || string.IsNullOrEmpty(files[0].FileName)) |
|
|