From: <de...@de...> - 2017-07-26 06:25:26
|
Author: HideyoImazu Date: 2017-07-26 06:02:54 +0000 (Wed, 26 Jul 2017) New Revision: 30360 Trac url: http://develop.twiki.org/trac/changeset/30360 Modified: twiki/branches/TWikiRelease06x00/core/lib/TWiki/Store/RcsFile.pm Log: Item7818: TWiki::Store::RcsFile::moveTopic() may fail to move attachments Modified: twiki/branches/TWikiRelease06x00/core/lib/TWiki/Store/RcsFile.pm =================================================================== --- twiki/branches/TWikiRelease06x00/core/lib/TWiki/Store/RcsFile.pm 2017-07-26 06:01:57 UTC (rev 30359) +++ twiki/branches/TWikiRelease06x00/core/lib/TWiki/Store/RcsFile.pm 2017-07-26 06:02:54 UTC (rev 30360) @@ -632,6 +632,7 @@ my $from = $this->{pubDir}.'/'.$this->{web}.'/'.$this->{topic}; if( -e $from ) { my $to = $this->{pubDir}.'/'.$newWeb.'/'.$newTopic; + File::Path::rmtree( $to ); # Item7818 _moveFile( $from, $to ); } |