diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index 0b2ae02b3..330e1cde6 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -61,6 +61,7 @@ class AttachmentsController < ApplicationController end rescue => e redirect_to "http://" + (Setting.host_name.to_s) +"/file_not_found.html" + return end #更新资源文件类型 diff --git a/public/file_not_found.html b/public/file_not_found.html index 5b9b8bc1d..c927e13c0 100644 --- a/public/file_not_found.html +++ b/public/file_not_found.html @@ -1,23 +1,40 @@ - + -
Trustie Team.
- ++ Back +
+