[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
raeburn at source.lon-capa.org
Wed Aug 23 18:38:44 EDT 2017
raeburn Wed Aug 23 22:38:44 2017 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- Sanity checking
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1349 loncom/lonnet/perl/lonnet.pm:1.1350
--- loncom/lonnet/perl/lonnet.pm:1.1349 Fri Aug 11 00:25:30 2017
+++ loncom/lonnet/perl/lonnet.pm Wed Aug 23 22:38:43 2017
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1349 2017/08/11 00:25:30 raeburn Exp $
+# $Id: lonnet.pm,v 1.1350 2017/08/23 22:38:43 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3694,12 +3694,12 @@
'_'.$env{'user.domain'}.'/pending';
} elsif (($context eq 'existingfile') || ($context eq 'canceloverwrite')) {
my ($docuname,$docudom);
- if ($destudom) {
+ if ($destudom =~ /^$match_domain$/) {
$docudom = $destudom;
} else {
$docudom = $env{'user.domain'};
}
- if ($destuname) {
+ if ($destuname =~ /^$match_username$/) {
$docuname = $destuname;
} else {
$docuname = $env{'user.name'};
More information about the LON-CAPA-cvs
mailing list