X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/7f34b3c1f69619eaf3c41945ab22cf21883bb945..4cb3ecfd6f144901ed89dae7acafdf1c124c53f4:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index 31020aebc..ae51efd78 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -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(); } @@ -1207,7 +1203,6 @@ sub parse_template { local (*IN, *OUT); my $userspath = $::lx_office_conf{paths}->{userspath}; - $self->{"cwd"} = getcwd(); $self->{"tmpdir"} = $self->{cwd} . "/${userspath}"; @@ -1299,6 +1294,7 @@ sub parse_template { $result = $template->parse(*STDOUT); } + Common::copy_file_to_webdav_folder($self) if ($self->{webdav}); if (!$result) { $self->cleanup(); $self->error("$self->{IN} : " . $template->get_error());