[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
raeburn at source.lon-capa.org
Tue Sep 27 14:04:53 EDT 2016
raeburn Tue Sep 27 18:04:53 2016 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- Eliminate "unauthorized" when author/co-author views top level of Authoring
Space without trailing /.
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1324 loncom/lonnet/perl/lonnet.pm:1.1325
--- loncom/lonnet/perl/lonnet.pm:1.1324 Wed Sep 21 05:15:40 2016
+++ loncom/lonnet/perl/lonnet.pm Tue Sep 27 18:04:52 2016
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1324 2016/09/21 05:15:40 raeburn Exp $
+# $Id: lonnet.pm,v 1.1325 2016/09/27 18:04:52 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -7436,7 +7436,7 @@
my ($ownername,$ownerdomain,$ownerhome);
($ownerdomain,$ownername) =
- ($url=~ m{^(?:\Q$perlvar{'lonDocRoot'}\E|)(?:/daxepage|/daxeopen)?/priv/($match_domain)/($match_username)/});
+ ($url=~ m{^(?:\Q$perlvar{'lonDocRoot'}\E|)(?:/daxepage|/daxeopen)?/priv/($match_domain)/($match_username)(?:/|$)});
# The URL does not really point to any authorspace, forget it
unless (($ownername) && ($ownerdomain)) { return ''; }
More information about the LON-CAPA-cvs
mailing list