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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 25 Sep 2003 19:47:13 -0000


albertel		Thu Sep 25 15:47:13 2003 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - can't do metadat on CSTR, early out
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.421 loncom/lonnet/perl/lonnet.pm:1.422
--- loncom/lonnet/perl/lonnet.pm:1.421	Mon Sep 22 15:32:49 2003
+++ loncom/lonnet/perl/lonnet.pm	Thu Sep 25 15:47:13 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.421 2003/09/22 19:32:49 albertel Exp $
+# $Id: lonnet.pm,v 1.422 2003/09/25 19:47:13 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3633,7 +3633,7 @@
     $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 =~ m|/$|) || ($uri =~ m|/.meta$|) || ($uri =~ /^~/)) {
 	return '';
     }
     my $filename=$uri;