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

raeburn raeburn@source.lon-capa.org
Sun, 29 Nov 2009 00:17:22 -0000


raeburn		Sun Nov 29 00:17:22 2009 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Plain text - Copy resources - was not being displayed for 'cre' priv.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1045 loncom/lonnet/perl/lonnet.pm:1.1046
--- loncom/lonnet/perl/lonnet.pm:1.1045	Sat Nov 28 21:33:57 2009
+++ loncom/lonnet/perl/lonnet.pm	Sun Nov 29 00:17:22 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1045 2009/11/28 21:33:57 raeburn Exp $
+# $Id: lonnet.pm,v 1.1046 2009/11/29 00:17:22 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -6142,7 +6142,7 @@
 
 sub plaintext {
     my ($short,$type,$cid,$forcedefault) = @_;
-    if ($short =~ /^cr/) {
+    if ($short =~ m{^cr/}) {
 	return (split('/',$short))[-1];
     }
     if (!defined($cid)) {