Browse Source

unwanted errors have been suppressed

pull/3720/head
Ahmet 7 years ago
parent
commit
c031b3c8b5
  1. 8
      modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/Blogs/BlogAppService.cs

8
modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/Blogs/BlogAppService.cs

@ -1,5 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Volo.Abp.Application.Dtos; using Volo.Abp.Application.Dtos;
@ -32,6 +33,13 @@ namespace Volo.Blogging.Blogs
if (blog == null) if (blog == null)
{ {
FileInfo fi = new FileInfo(shortName);
if (!string.IsNullOrEmpty(fi.Extension))
{
return null;
}
throw new EntityNotFoundException(typeof(Blog), shortName); throw new EntityNotFoundException(typeof(Blog), shortName);
} }

Loading…
Cancel
Save