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

raeburn raeburn at source.lon-capa.org
Wed Nov 20 13:02:55 EST 2019


raeburn		Wed Nov 20 18:02:55 2019 EDT

  Modified files:              
    /loncom/interface	lonmysql.pm 
  Log:
  - Bug 6825
  
  
Index: loncom/interface/lonmysql.pm
diff -u loncom/interface/lonmysql.pm:1.40 loncom/interface/lonmysql.pm:1.41
--- loncom/interface/lonmysql.pm:1.40	Sun Aug 14 16:13:22 2016
+++ loncom/interface/lonmysql.pm	Wed Nov 20 18:02:55 2019
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # MySQL utility functions
 #
-# $Id: lonmysql.pm,v 1.40 2016/08/14 16:13:22 raeburn Exp $
+# $Id: lonmysql.pm,v 1.41 2019/11/20 18:02:55 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1259,6 +1259,7 @@
 sub fix_table_name {
     my ($name) = @_;
     $name =~ s/^(\d+[eE]\d+)/_$1/;
+    $name =~ s/\W//g;
     return $name;
 }
 




More information about the LON-CAPA-cvs mailing list