[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

raeburn raeburn@source.lon-capa.org
Sat, 08 Jan 2011 06:13:21 -0000


raeburn		Sat Jan  8 06:13:21 2011 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Bug 5026. Reduce log spam.
    - No associated metadata files for uploaded files in /docs/ subdirectory
      in userfiles. 
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1096 loncom/lonnet/perl/lonnet.pm:1.1097
--- loncom/lonnet/perl/lonnet.pm:1.1096	Thu Dec 30 19:35:37 2010
+++ loncom/lonnet/perl/lonnet.pm	Sat Jan  8 06:13:20 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1096 2010/12/30 19:35:37 raeburn Exp $
+# $Id: lonnet.pm,v 1.1097 2011/01/08 06:13:20 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -8470,7 +8470,7 @@
     if (($uri eq '') || 
 	(($uri =~ m|^/*adm/|) && 
 	     ($uri !~ m|^adm/includes|) && ($uri !~ m|/bulletinboard$|)) ||
-        ($uri =~ m|/$|) || ($uri =~ m|/.meta$|) || ($uri =~ /^\*uploaded\/.+\.sequence$/) ) {
+        ($uri =~ m|/$|) || ($uri =~ m|/.meta$|) || ($uri =~ /^\*uploaded\/.+\.sequence$/) || ($uri =~ m{^/*uploaded/$match_domain/$match_courseid/docs/})) {
 	return undef;
     }
     if (($uri =~ /^~/ || $uri =~ m{home/$match_username/public_html/})