Two Bugfixes

Make session secret persist across restarts. (Been meaning to do this for
a while: no more "stale cookie" warnings fter restarting the server.

Avoid cookie overflow in session store.
This commit is contained in:
Jacques Distler 2008-09-01 15:35:34 -05:00
parent 35d34f36d5
commit e43c9429c0
2 changed files with 14 additions and 15 deletions

View file

@ -266,7 +266,6 @@ class WikiController < ApplicationController
rescue => e
flash[:error] = e
logger.error e
flash[:content] = the_content
if @page
@page.unlock
redirect_to :action => 'edit', :web => @web_name, :id => @page_name
@ -286,7 +285,7 @@ class WikiController < ApplicationController
# the application itself (for application errors, it's better not to rescue the error at all)
rescue => e
logger.error e
flash[:error] = e.message
flash[:error] = e
if in_a_web?
redirect_to :action => 'edit', :web => @web_name, :id => @page_name
else