Skip to content

Commit

Permalink
fix: 修复恶意文件名造成页面判断失误
Browse files Browse the repository at this point in the history
  • Loading branch information
icyleaf committed Aug 1, 2023
1 parent 69ee9b7 commit 92490af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/releases_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,6 @@ def not_found(e)
end
end

render :not_found, status: :not_found
render 'releases/not_found', status: :not_found
end
end
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
#############################################
# URL Friendly
#############################################
scope path: ':channel', as: :friendly_channel do
scope path: ':channel', format: false, as: :friendly_channel do
get '/overview', to: 'channels#show'
get '', to: 'releases#index', as: 'releases'
get 'versions', to: 'channels/versions#index', as: 'versions'
Expand Down

0 comments on commit 92490af

Please sign in to comment.