[LON-CAPA-cvs] cvs: rat / lonratparms.pm
www
lon-capa-cvs@mail.lon-capa.org
Sat, 24 Apr 2004 00:41:51 -0000
www Fri Apr 23 20:41:51 2004 EDT
Modified files:
/rat lonratparms.pm
Log:
Bug #2949: empty parameter name caused JavaScript error
Index: rat/lonratparms.pm
diff -u rat/lonratparms.pm:1.20 rat/lonratparms.pm:1.21
--- rat/lonratparms.pm:1.20 Fri Apr 23 15:39:25 2004
+++ rat/lonratparms.pm Fri Apr 23 20:41:51 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Set parameters inside of the RAT
#
-# $Id: lonratparms.pm,v 1.20 2004/04/23 19:39:25 www Exp $
+# $Id: lonratparms.pm,v 1.21 2004/04/24 00:41:51 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -57,6 +57,7 @@
foreach (split(/\:/,$ENV{'form.parms'})) {
my ($ptype,$pname,$pvalue)=split(/\_\_\_/,$_);
+ unless ($pname) { next; }
unless ($type{$pname}) { $type{$pname}=$ptype; }
$value{$pname}=$pvalue;
$content{$pname}=$pvalue;