[LON-CAPA-cvs] cvs: loncom /interface londocs.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 24 Aug 2005 21:08:16 -0000
albertel Wed Aug 24 17:08:16 2005 EDT
Modified files:
/loncom/interface londocs.pm
Log:
- BUG# 4290
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.200 loncom/interface/londocs.pm:1.201
--- loncom/interface/londocs.pm:1.200 Mon Aug 1 13:24:18 2005
+++ loncom/interface/londocs.pm Wed Aug 24 17:08:14 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.200 2005/08/01 17:24:18 raeburn Exp $
+# $Id: londocs.pm,v 1.201 2005/08/24 21:08:14 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -155,7 +155,9 @@
my ($ca,$cd)=split(/\@/,$env{'form.authorspace'});
$r->print('<h3>'.&mt('Copying Files').'</h3>');
my $title=$env{'form.authorfolder'};
+ my ($ext)=($title=~s/\.(\w+)$//);
$title=&clean($title);
+ $title.='.'.$ext;
my %replacehash=();
foreach (keys %env) {
if ($_=~/^form\.namefor\_(.+)/) {