[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
raeburn at source.lon-capa.org
Thu Feb 11 14:54:52 EST 2021
raeburn Thu Feb 11 19:54:52 2021 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- Sanity checking
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1442 loncom/lonnet/perl/lonnet.pm:1.1443
--- loncom/lonnet/perl/lonnet.pm:1.1442 Mon Feb 8 14:50:53 2021
+++ loncom/lonnet/perl/lonnet.pm Thu Feb 11 19:54:52 2021
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1442 2021/02/08 14:50:53 raeburn Exp $
+# $Id: lonnet.pm,v 1.1443 2021/02/11 19:54:52 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -4074,6 +4074,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