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:
Jacques Distler 2008-11-05 22:24:14 -06:00
parent dfb0f5f347
commit bceb1864df
5 changed files with 14 additions and 27 deletions

View file

@ -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]}'"