Skip to content

Commit

Permalink
Using redirect_to :back instead of HTTP_REFERER
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Guidi committed Jul 16, 2008
1 parent 32362e0 commit 14a040f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/locales_controller.rb
Expand Up @@ -6,7 +6,7 @@ def set
session[:locale] = Locale.active
session[:__globalize_translations] = nil
logger.debug("[#{Time.now.to_s(:db)}] - Set current Locale on #{Locale.language}")
redirect_to request.env['HTTP_REFERER'] if request.env['HTTP_REFERER']
redirect_to :back
end

def translate
Expand Down

0 comments on commit 14a040f

Please sign in to comment.