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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 23 Nov 2006 01:09:36 -0000


albertel		Wed Nov 22 20:09:36 2006 EDT

  Modified files:              
    /loncom/interface	loncreatecourse.pm 
  Log:
  - switch cleaing mechanism
  
  
  
Index: loncom/interface/loncreatecourse.pm
diff -u loncom/interface/loncreatecourse.pm:1.98 loncom/interface/loncreatecourse.pm:1.99
--- loncom/interface/loncreatecourse.pm:1.98	Thu Nov  2 16:06:06 2006
+++ loncom/interface/loncreatecourse.pm	Wed Nov 22 20:09:36 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Create a course
 #
-# $Id: loncreatecourse.pm,v 1.98 2006/11/02 21:06:06 albertel Exp $
+# $Id: loncreatecourse.pm,v 1.99 2006/11/23 01:09:36 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -566,10 +566,8 @@
 
 sub create_course {
     my $r=shift;
-    my $ccuname=$env{'form.ccuname'};
-    my $ccdomain=$env{'form.ccdomain'};
-    $ccuname=~s/\W//g;
-    $ccdomain=~s/\W//g;
+    my $ccuname =&LONCAPA::clean_username($env{'form.ccuname'});
+    my $ccdomain=&LONCAPA::clean_domain($env{'form.ccdomain'});
     my $crstype = 'Group';
     my ($enrollstart,$enrollend,$startaccess,$endaccess);