Datei vor Kopieren schließen
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 3 Jul 2013 07:57:14 +0000 (09:57 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 3 Jul 2013 08:20:54 +0000 (10:20 +0200)
SL/Form.pm

index 5c701f7..fc900c1 100644 (file)
@@ -1069,9 +1069,11 @@ sub parse_template {
     $self->cleanup();
     $self->error("$self->{IN} : " . $template->get_error());
   }
+
+  close OUT if $self->{OUT};
+
   Common::copy_file_to_webdav_folder($self) if ($::instance_conf->get_webdav
                                                 and $::instance_conf->get_webdav_documents and not $self->{preview});
-  close OUT if $self->{OUT};
 
   if ($self->{media} eq 'file') {
     copy(join('/', $self->{cwd}, $userspath, $self->{tmpfile}), $out =~ m|^/| ? $out : join('/', $self->{cwd}, $out)) if $template->uses_temp_file;