[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm

raeburn raeburn at source.lon-capa.org
Sun Aug 13 19:21:05 EDT 2017


raeburn		Sun Aug 13 23:21:05 2017 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  - Routine is named clean_filename().
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1292 loncom/interface/loncommon.pm:1.1293
--- loncom/interface/loncommon.pm:1.1292	Sun Aug 13 20:56:24 2017
+++ loncom/interface/loncommon.pm	Sun Aug 13 23:21:04 2017
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.1292 2017/08/13 20:56:24 raeburn Exp $
+# $Id: loncommon.pm,v 1.1293 2017/08/13 23:21:04 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -12604,7 +12604,7 @@
         return '<p class="LC_error">'.&mt('Not extracted.').'<br />'.
                &mt('Unexpected course context.').'</p>'."\n";
     }
-    unless ($file eq &Apache::lonnet::clean_name($file)) {
+    unless ($file eq &Apache::lonnet::clean_filename($file)) {
         return '<p class="LC_error">'.&mt('Not extracted.').'<br />'.
                &mt('Filename contained unexpected characters.').'</p>'."\n";
     }




More information about the LON-CAPA-cvs mailing list