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

raeburn raeburn at source.lon-capa.org
Thu Feb 11 15:01:56 EST 2021


raeburn		Thu Feb 11 20:01:56 2021 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - For 2.11
    Backport 1.1443
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1172.2.139 loncom/lonnet/perl/lonnet.pm:1.1172.2.140
--- loncom/lonnet/perl/lonnet.pm:1.1172.2.139	Wed Feb 10 15:00:54 2021
+++ loncom/lonnet/perl/lonnet.pm	Thu Feb 11 20:01:55 2021
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1172.2.139 2021/02/10 15:00:54 raeburn Exp $
+# $Id: lonnet.pm,v 1.1172.2.140 2021/02/11 20:01:55 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3736,6 +3736,10 @@
 # Replace all .\d. sequences with _\d. so they no longer look like version
 # numbers
     $fname=~s/\.(\d+)(?=\.)/_$1/g;
+# Replace three or more adjacent underscores with one for consistency
+# with loncfile::filename_check() so complete url can be extracted by
+# lonnet::decode_symb()
+    $fname=~s/_{3,}/_/g;
     return $fname;
 }
 




More information about the LON-CAPA-cvs mailing list