<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -273,7 +273,8 @@ class WikiController &lt; ApplicationController
       if @page
         new_name = params['new_name'] ? params['new_name'].purify : @page_name
         raise Instiki::ValidationError.new('Your new title cannot contain a &quot;.&quot;') if new_name.include? '.'
-        raise Instiki::ValidationError.new('A page named &quot;' + new_name.escapeHTML + '&quot; already exists.') if @page_name != new_name &amp;&amp; @web.has_page?(new_name)
+        raise Instiki::ValidationError.new('A page named &quot;' + new_name.escapeHTML + '&quot; already exists.') if
+            @page_name != new_name &amp;&amp; @web.has_page?(new_name)
         wiki.revise_page(@web_name, @page_name, new_name, the_content, Time.now, 
             Author.new(author_name, remote_ip), PageRenderer.new)
         @page.unlock
@@ -286,11 +287,15 @@ class WikiController &lt; ApplicationController
     rescue Instiki::ValidationError =&gt; e
       flash[:error] = e.to_s
       logger.error e
+      param_hash = {:web =&gt; @web_name, :id =&gt; @page_name}
+      # Work around Rails bug: flash will not display if query string is longer than 10192 bytes
+      param_hash.update( :content =&gt; the_content ) if the_content &amp;&amp; 
+         CGI::escape(the_content).length &lt; 10183 &amp;&amp; the_content != @page.current_revision.content
       if @page
         @page.unlock
-        redirect_to :action =&gt; 'edit', :web =&gt; @web_name, :id =&gt; @page_name, :content =&gt; the_content
+        redirect_to param_hash.update( :action =&gt; 'edit' )
       else
-        redirect_to :action =&gt; 'new', :web =&gt; @web_name, :id =&gt; @page_name, :content =&gt; the_content
+        redirect_to param_hash.update( :action =&gt; 'new' )
       end
     end
   end</diff>
      <filename>app/controllers/wiki_controller.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0cbeda005da13e2b46a603be1074f1b389229e00</id>
    </parent>
    <parent>
      <id>20c99df4408514effe0e635855ecb1b006a5013a</id>
    </parent>
  </parents>
  <author>
    <name>Jacques Distler</name>
    <email>distler@golem.ph.utexas.edu</email>
  </author>
  <url>http://github.com/parasew/instiki/commit/6e8c25d96a0314d33e78df86e6455c7320c650dd</url>
  <id>6e8c25d96a0314d33e78df86e6455c7320c650dd</id>
  <committed-date>2009-10-19T16:26:34-07:00</committed-date>
  <authored-date>2009-10-19T16:26:34-07:00</authored-date>
  <message>Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki</message>
  <tree>354389d61c69b4457ab609cb12801e638b7e2cac</tree>
  <committer>
    <name>Jacques Distler</name>
    <email>distler@golem.ph.utexas.edu</email>
  </committer>
</commit>
