remove_internal_hostname_when_redirecting_to_login_page.patch

Albert Rosenfield, 2010-11-02 19:17

Download (515 Bytes)

View differences:

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