[LON-CAPA-cvs] cvs: loncom /interface loncreatecourse.pm
raeburn
raeburn at source.lon-capa.org
Thu Jul 25 16:13:56 EDT 2019
raeburn Thu Jul 25 20:13:56 2019 EDT
Modified files:
/loncom/interface loncreatecourse.pm
Log:
- Correction to regex added in rev. 1.168
Index: loncom/interface/loncreatecourse.pm
diff -u loncom/interface/loncreatecourse.pm:1.169 loncom/interface/loncreatecourse.pm:1.170
--- loncom/interface/loncreatecourse.pm:1.169 Sun Nov 12 23:04:23 2017
+++ loncom/interface/loncreatecourse.pm Thu Jul 25 20:13:56 2019
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Create a course
#
-# $Id: loncreatecourse.pm,v 1.169 2017/11/12 23:04:23 raeburn Exp $
+# $Id: loncreatecourse.pm,v 1.170 2019/07/25 20:13:56 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -898,7 +898,7 @@
my $batchfilepath=&Apache::lonnet::userfileupload('coursecreatorxml',undef,
'batchupload',undef,undef,
undef,undef,$defdom);
- if ($batchfilepath =~ m{^(\Q$dir/$defdom/web/$uname\_$udom\E)/pending/([^/]+)$}) {
+ if ($batchfilepath =~ m{^(\Q$dir/$defdom/web/$uname\E_\Q$udom\E)/pending/([^/]+)$}) {
my ($batchdir,$filename) = ($1,$2);
if (-e "$batchfilepath") {
if (open(FILE,"<",$batchfilepath)) {
More information about the LON-CAPA-cvs
mailing list