mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 02:48:28 +08:00
SECURITY: Don't leak topic title in the redirect
This commit is contained in:
@ -70,6 +70,8 @@ class PostsController < ApplicationController
|
||||
user = User.find(params[:user_id].to_i)
|
||||
request['u'] = user.username_lower if user
|
||||
end
|
||||
|
||||
guardian.ensure_can_see!(post)
|
||||
redirect_to post.url
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user