Fixed the 500 error on redirect.
This commit is contained in:
parent
dd07adec0d
commit
9eae4862e0
3 changed files with 3 additions and 3 deletions
|
|
@ -24,6 +24,7 @@ use WebGUI::Style;
|
|||
use WebGUI::Template;
|
||||
use WebGUI::Utility;
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub page {
|
||||
my ($debug, %contentHash, $w, $cmd, $pageEdit, $wobject, $wobjectOutput, $extra, $originalWobject, $proxyWobjectId,
|
||||
|
|
@ -169,8 +170,9 @@ sub page {
|
|||
$debug .='</table>';
|
||||
}
|
||||
if ($session{header}{redirect} ne "") {
|
||||
$httpHeader = $session{header}{redirect};
|
||||
WebGUI::Session::close();
|
||||
return $session{header}{redirect};
|
||||
return $httpHeader;
|
||||
} else {
|
||||
$httpHeader = WebGUI::Session::httpHeader();
|
||||
($header, $footer) = WebGUI::Style::getStyle();
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ package WebGUI::SQL;
|
|||
|
||||
=cut
|
||||
|
||||
use CGI::Carp qw(fatalsToBrowser);
|
||||
use DBI;
|
||||
use Exporter;
|
||||
use strict;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ package WebGUI::Wobject;
|
|||
|
||||
=cut
|
||||
|
||||
use CGI::Carp qw(fatalsToBrowser);
|
||||
use DBI;
|
||||
use strict qw(subs vars);
|
||||
use Tie::IxHash;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue