Author: HideyoImazu
Date: 2017-07-26 06:01:57 +0000 (Wed, 26 Jul 2017)
New Revision: 30359
Trac url: http://develop.twiki.org/trac/changeset/30359
Modified:
twiki/trunk/core/lib/TWiki/Store/RcsFile.pm
Log:
Item7818: TWiki::Store::RcsFile::moveTopic() may fail to move attachments
Modified: twiki/trunk/core/lib/TWiki/Store/RcsFile.pm
===================================================================
--- twiki/trunk/core/lib/TWiki/Store/RcsFile.pm 2017-07-21 08:59:17 UTC (rev 30358)
+++ twiki/trunk/core/lib/TWiki/Store/RcsFile.pm 2017-07-26 06:01:57 UTC (rev 30359)
@@ -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 );
}
|