Project

General

Profile

Patch #6807 ยป remove_internal_hostname_when_redirecting_to_login_page.patch

Albert Rosenfield, 2010-11-02 19:17

View differences:

app/controllers/application_controller.rb
def require_login
if !User.current.logged?
# Extract only the basic url parameters on non-GET requests
params[:only_path] = true
if request.get?
url = url_for(params)
else
    (1-1/1)