mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
Merge pull request #4096 from aryanraj/master
Fix: Added underscore to my_redirect regex
This commit is contained in:
commit
9c2b30d39b
@ -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
Block a user