From c3507a324281716769466c93b554a7bdd93f3e9e Mon Sep 17 00:00:00 2001 From: Aryan Raj Date: Sat, 19 Mar 2016 17:33:10 +0530 Subject: [PATCH] Fix: Added underscore to my_redirect regex --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 586e7fded0b..d20d090c4fb 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -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]}"