[freeside-commits] freeside/htetc handler.pl,1.64,1.65

Ivan,,, ivan at wavetail.420.am
Thu Mar 9 05:42:43 PST 2006


Update of /home/cvs/cvsroot/freeside/htetc
In directory wavetail:/tmp/cvs-serv29842

Modified Files:
	handler.pl 
Log Message:
fix that blank-page-instead-of-profiling-redirect-when-called-from-an-include bug triggered by mason 1.32 :)

Index: handler.pl
===================================================================
RCS file: /home/cvs/cvsroot/freeside/htetc/handler.pl,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- handler.pl	8 Mar 2006 10:05:01 -0000	1.64
+++ handler.pl	9 Mar 2006 13:42:40 -0000	1.65
@@ -247,10 +247,8 @@
 
       sub redirect {
         my( $location ) = @_;
-        warn 'redir1 $m='.$m;
         use vars qw($m);
         $m->clear_buffer;
-        warn 'redir3-prof';
         #false laziness w/above
         if ( defined(@DBIx::Profile::ISA) ) { #profiling redirect
 
@@ -267,14 +265,13 @@
           );
           dbh->{'private_profile'} = {};
 
-          warn 'redir9-prof';
-          my $rv = $m->abort(200);
-          warn "redir10-prof: $rv";
-          $rv;
+          #whew.  removing this is all that's needed to fix the annoying
+          #blank-page-instead-of-profiling-redirect-when-called-from-an-include
+          #bug triggered by mason 1.32
+          #my $rv = $m->abort(200);
 
         } else { #normal redirect
 
-          warn 'redir9-redirect';
           $m->redirect($location);
 
         }



More information about the freeside-commits mailing list