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

raeburn raeburn at source.lon-capa.org
Fri Dec 21 12:01:04 EST 2012


raeburn		Fri Dec 21 17:01:04 2012 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - For 2.11
    - Backport 1.1207.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1172.2.13 loncom/lonnet/perl/lonnet.pm:1.1172.2.14
--- loncom/lonnet/perl/lonnet.pm:1.1172.2.13	Thu Dec 13 19:32:52 2012
+++ loncom/lonnet/perl/lonnet.pm	Fri Dec 21 17:01:04 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1172.2.13 2012/12/13 19:32:52 raeburn Exp $
+# $Id: lonnet.pm,v 1.1172.2.14 2012/12/21 17:01:04 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2790,7 +2790,7 @@
         }
         if ($uploaded || $incourse) {
             $home=&homeserver($cnum,$cdom);
-        } else {
+        } elsif ($file !~ m{/$}) {
             $file=~s{^(priv/$match_domain/$match_username)}{/$1};
             $file=~s{^($match_domain/$match_username)}{/priv/$1};
             # Check that the user has permission to edit this resource




More information about the LON-CAPA-cvs mailing list