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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 25 Sep 2003 20:02:54 -0000


albertel		Thu Sep 25 16:02:54 2003 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - block to other version of CSTR space too
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.422 loncom/lonnet/perl/lonnet.pm:1.423
--- loncom/lonnet/perl/lonnet.pm:1.422	Thu Sep 25 15:47:13 2003
+++ loncom/lonnet/perl/lonnet.pm	Thu Sep 25 16:02:54 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.422 2003/09/25 19:47:13 albertel Exp $
+# $Id: lonnet.pm,v 1.423 2003/09/25 20:02:54 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3629,11 +3629,11 @@
 
 sub metadata {
     my ($uri,$what,$liburi,$prefix,$depthcount)=@_;
-
     $uri=&declutter($uri);
     # if it is a non metadata possible uri return quickly
     if (($uri eq '') || (($uri =~ m|^/*adm/|) && ($uri !~ m|^adm/includes|)) ||
-        ($uri =~ m|/$|) || ($uri =~ m|/.meta$|) || ($uri =~ /^~/)) {
+        ($uri =~ m|/$|) || ($uri =~ m|/.meta$|) || ($uri =~ /^~/) ||
+	($uri =~ m|home/[^/]+/public_html/|)) {
 	return '';
     }
     my $filename=$uri;