mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
SECURITY: Fix XSS on unsubscribed page.
This commit is contained in:
@ -110,6 +110,7 @@ class EmailController < ApplicationController
|
||||
|
||||
def unsubscribed
|
||||
@email = params[:email]
|
||||
raise Discourse::NotFound if !User.find_by_email(params[:email])
|
||||
@topic = Topic.find_by(id: params[:topic_id].to_i) if params[:topic_id]
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user