瀏覽代碼

Added proper 404 response

tags/3.0.0
Teknikode 4 年之前
父節點
當前提交
6a1222a667
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      Teknik/Areas/Upload/Controllers/UploadController.cs

+ 4
- 0
Teknik/Areas/Upload/Controllers/UploadController.cs 查看文件

@@ -151,6 +151,10 @@ namespace Teknik.Areas.Upload.Controllers
contentLength = uploads.ContentLength;
dateUploaded = uploads.DateUploaded;
}
else
{
return Redirect(Url.SubRouteUrl("error", "Error.Http404"));
}
}

// We don't have the key, so we need to decrypt it client side

Loading…
取消
儲存