--- loncom/interface/Attic/londropadd.pm 2004/06/29 04:30:00 1.115
+++ loncom/interface/Attic/londropadd.pm 2004/10/26 15:04:20 1.120
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to drop and add students in courses
#
-# $Id: londropadd.pm,v 1.115 2004/06/29 04:30:00 raeburn Exp $
+# $Id: londropadd.pm,v 1.120 2004/10/26 15:04:20 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -309,7 +309,7 @@ END
return;
}
// alert('current.radiovalue = '+current.radiovalue);
- if (current.radiovalue == null || current.radiovalue == 'nochange') {
+ if (current.radiovalue == null || current.radiovalue == '' || current.radiovalue == 'nochange') {
// They did not check any of the login radiobuttons.
alert('$alert{'authen'}');
return;
@@ -914,6 +914,10 @@ sub get_student_username_domain_form {
+
END
return;
}
@@ -924,6 +928,8 @@ sub print_enroll_single_student_form {
#
my $username = $ENV{'form.cuname'};
my $domain = $ENV{'form.cudomain'};
+ $username=~s/[\W|_]//gs;
+ $domain=~s/[\W|_]//gs;
my $home = &Apache::lonnet::homeserver($username,$domain);
# $new_user flags whether we are creating a new user or using an old one
my $new_user = 1;
@@ -1375,7 +1381,7 @@ END
$cellentry = ''.&mt('auto').' Change';
$autocount ++;
} else {
- $cellentry = '