[LON-CAPA-cvs] cvs: loncom /homework grades.pm /interface lonhtmlcommon.pm

albertel lon-capa-cvs-allow@mail.lon-capa.org
Fri, 02 Nov 2007 23:41:40 -0000


albertel		Fri Nov  2 19:41:40 2007 EDT

  Modified files:              
    /loncom/interface	lonhtmlcommon.pm 
    /loncom/homework	grades.pm 
  Log:
  - xhtml
  
  
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.167 loncom/interface/lonhtmlcommon.pm:1.168
--- loncom/interface/lonhtmlcommon.pm:1.167	Tue Oct  9 20:02:19 2007
+++ loncom/interface/lonhtmlcommon.pm	Fri Nov  2 19:41:01 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common html routines
 #
-# $Id: lonhtmlcommon.pm,v 1.167 2007/10/10 00:02:19 albertel Exp $
+# $Id: lonhtmlcommon.pm,v 1.168 2007/11/02 23:41:01 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -486,8 +486,8 @@
     my ($base, $fields)=@_;
     my $url;
     $url = $base.'?';
-    foreach my $key(keys(%$fields)) {
-        $url.=$key.'='.$$fields{$key}.'&';
+    foreach my $key (keys(%$fields)) {
+        $url.=&escape($key).'='.&escape($$fields{$key}).'&';
     }
     $url =~ s/&$//;
     return $url;
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.475 loncom/homework/grades.pm:1.476
--- loncom/homework/grades.pm:1.475	Thu Nov  1 16:56:51 2007
+++ loncom/homework/grades.pm	Fri Nov  2 19:41:39 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.475 2007/11/01 20:56:51 albertel Exp $
+# $Id: grades.pm,v 1.476 2007/11/02 23:41:39 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -7284,7 +7284,7 @@
     $Str .= '<input type="hidden" name="command" value="" />'.
     	'<input type="hidden" name="symb"        value="'.&Apache::lonenc::check_encrypt($symb).'" />'."\n".
 	'<input type="hidden" name="handgrade"   value="'.$hdgrade.'" />'."\n".
-	'<input type="hidden" name="probTitle"   value="'.$probTitle.'" ue="" />'."\n".
+	'<input type="hidden" name="probTitle"   value="'.$probTitle.'" />'."\n".
 	'<input type="hidden" name="saveState"   value="" />'."\n".
 	'<input type="hidden" name="gradingMenu" value="1" />'."\n".
 	'<input type="hidden" name="showgrading" value="yes" />'."\n";
@@ -7308,7 +7308,6 @@
         $Str .= '    '.('&nbsp;'x8).$menudata->{'short_description'}.
             "\n";
     }
-    $Str .="</dl>\n";
     $Str .="</form>\n";
     $request->print(<<GRADINGMENUJS);
 <script type="text/javascript" language="javascript">