[LON-CAPA-cvs] cvs: loncom(version_2_3_X) /homework bridgetask.pm

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 26 Mar 2007 23:33:27 -0000


albertel		Mon Mar 26 19:33:27 2007 EDT

  Modified files:              (Branch: version_2_3_X)
    /loncom/homework	bridgetask.pm 
  Log:
  - backport 1.229
  
  
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.224.2.1 loncom/homework/bridgetask.pm:1.224.2.2
--- loncom/homework/bridgetask.pm:1.224.2.1	Mon Feb 26 14:37:38 2007
+++ loncom/homework/bridgetask.pm	Mon Mar 26 19:33:26 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: bridgetask.pm,v 1.224.2.1 2007/02/26 19:37:38 albertel Exp $
+# $Id: bridgetask.pm,v 1.224.2.2 2007/03/26 23:33:26 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2836,11 +2836,13 @@
 	    .'</font></p>';
     }
     if (!$env{'form.proctordomain'}) { $env{'form.proctordomain'}=$domain; }
+    my $uri = &Apache::lonenc::check_encrypt($env{'request.uri'});
+    $uri = &HTML::Entities::encode($uri,'<>&"');
     my $result= (<<ENDCHECKOUT);
 <h2>Proctor Validation</h2>
     <p>Your room's proctor needs to validate your access to this resource.</p>
     $msg
-<form name="checkout" method="post" action="$env{'request.uri'}">
+<form name="checkout" method="post" action="$uri">
 <input type="hidden" name="validate" value="yes" />
 <input type="hidden" name="submitted" value="yes" />
 <table>