--- loncom/interface/lonmysql.pm 2016/08/14 16:13:22 1.40 +++ loncom/interface/lonmysql.pm 2019/11/20 18:02:55 1.41 @@ -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 @@ Fixes a table name so that it will work sub fix_table_name { my ($name) = @_; $name =~ s/^(\d+[eE]\d+)/_$1/; + $name =~ s/\W//g; return $name; }