Fix: Added underscore to my_redirect regex
This commit is contained in:
parent
67a5fc39de
commit
c3507a3242
|
@ -165,7 +165,7 @@ class UsersController < ApplicationController
|
|||
end
|
||||
|
||||
def my_redirect
|
||||
raise Discourse::NotFound if params[:path] !~ /^[a-z\-\/]+$/
|
||||
raise Discourse::NotFound if params[:path] !~ /^[a-z_\-\/]+$/
|
||||
|
||||
if current_user.blank?
|
||||
cookies[:destination_url] = "/my/#{params[:path]}"
|
||||
|
|
Loading…
Reference in New Issue