[LON-CAPA-cvs] cvs: loncom(version_2_9_X) /homework structuretags.pm

raeburn raeburn@source.lon-capa.org
Wed, 10 Feb 2010 21:06:07 -0000


raeburn		Wed Feb 10 21:06:07 2010 EDT

  Modified files:              (Branch: version_2_9_X)
    /loncom/homework	structuretags.pm 
  Log:
  - Backport 1.454, 1.455 (part), 1.464.
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.444.4.5 loncom/homework/structuretags.pm:1.444.4.6
--- loncom/homework/structuretags.pm:1.444.4.5	Fri Jan 29 15:37:04 2010
+++ loncom/homework/structuretags.pm	Wed Feb 10 21:06:07 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.444.4.5 2010/01/29 15:37:04 raeburn Exp $
+# $Id: structuretags.pm,v 1.444.4.6 2010/02/10 21:06:07 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -256,7 +256,9 @@
     my $form_tag_start;
     if (!defined($found{'form'})) {
 	$form_tag_start='<form name="lonhomework" enctype="multipart/form-data" method="post" action="';
-	my $uri = &Apache::lonenc::check_encrypt($env{'request.uri'});
+        my $uri = Apache::loncommon::inhibit_menu_check(
+                &Apache::lonenc::check_encrypt($env{'request.uri'}));
+        $uri = &HTML::Entities::encode($uri,'<>&"');
 	$form_tag_start.=$uri.'" ';
 	if ($target eq 'edit') {
 	    $form_tag_start.=&Apache::edit::form_change_detection();