Nach $form->redirect() den Request beenden
authorMoritz Bunkus <moritz@bunkus.org>
Wed, 27 Apr 2011 08:37:38 +0000 (10:37 +0200)
committerMoritz Bunkus <moritz@bunkus.org>
Wed, 27 Apr 2011 08:37:38 +0000 (10:37 +0200)
SL/Form.pm

index 31020ae..b634217 100644 (file)
@@ -996,17 +996,13 @@ sub redirect {
   my ($self, $msg) = @_;
 
   if (!$self->{callback}) {
-
     $self->info($msg);
-    ::end_of_request();
-  }
 
-#  my ($script, $argv) = split(/\?/, $self->{callback}, 2);
-#  $script =~ s|.*/||;
-#  $script =~ s|[^a-zA-Z0-9_\.]||g;
-#  exec("perl", "$script", $argv);
+  } else {
+    print $::form->redirect_header($self->{callback});
+  }
 
-  print $::form->redirect_header($self->{callback});
+  ::end_of_request();
 
   $main::lxdebug->leave_sub();
 }