[Jifty-commit] r7625 - jifty/trunk/lib/Jifty

Jifty commits jifty-commit at lists.jifty.org
Tue Nov 17 21:14:08 EST 2009


Author: sartak
Date: Tue Nov 17 21:14:07 2009
New Revision: 7625

Modified:
   jifty/trunk/lib/Jifty/Web.pm

Log:
Clear Jifty::Web::FileUpload objects from continuations

Modified: jifty/trunk/lib/Jifty/Web.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web.pm	(original)
+++ jifty/trunk/lib/Jifty/Web.pm	Tue Nov 17 21:14:07 2009
@@ -734,10 +734,13 @@
                 has_run   => $_->has_run,
                 arguments => $_->arguments,
             );
+
             # Clear out filehandles, which don't go thorugh continuations well
-            $new_action->arguments->{$_} = ''
-              for grep {ref $new_action->arguments->{$_} eq "Fh"}
-                keys %{$new_action->arguments || {}};
+            for (keys %{$new_action->arguments || {}}) {
+                $new_action->arguments->{$_} = ''
+                    if ref($new_action->arguments->{$_}) eq "Fh"
+                    || ref($new_action->arguments->{$_}) eq "Jifty::Web::FileUpload";
+            }
         }
         my %parameters = ($page->parameters);
         $request->argument($_ => $parameters{$_}) for keys %parameters;


More information about the Jifty-commit mailing list