Fixes
Fix Session CookieOverflow bug when rescuing an InstikiValidation error. Fix some random things which will cause problems with Ruby 1.9. (Plenty more where those came from.)
This commit is contained in:
parent
dfb0f5f347
commit
bceb1864df
5 changed files with 14 additions and 27 deletions
|
@ -107,7 +107,7 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
def remember_location
|
||||
if request.method == :get and
|
||||
response.headers['Status'] == '200 OK' and not
|
||||
response.headers['Status'] == '200 OK' and not \
|
||||
%w(locked save back file pic import).include?(action_name)
|
||||
session[:return_to] = request.request_uri
|
||||
logger.debug "Session ##{session.object_id}: remembered URL '#{session[:return_to]}'"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue