[LON-CAPA-cvs] cvs: loncom(version_2_1_X) /homework structuretags.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 20 Apr 2006 19:08:43 -0000
albertel Thu Apr 20 15:08:43 2006 EDT
Modified files: (Branch: version_2_1_X)
/loncom/homework structuretags.pm
Log:
- backport 1.352
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.332.2.2 loncom/homework/structuretags.pm:1.332.2.3
--- loncom/homework/structuretags.pm:1.332.2.2 Wed Mar 29 17:43:29 2006
+++ loncom/homework/structuretags.pm Thu Apr 20 15:08:41 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.332.2.2 2006/03/29 22:43:29 albertel Exp $
+# $Id: structuretags.pm,v 1.332.2.3 2006/04/20 19:08:41 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -429,13 +429,14 @@
'warning'=>'Checking out resources is subject to course policies, and may exclude future credit even if done erroneously.',
'checkout'=>'Check out Exam for Viewing',
'checkout?'=>'Check out Exam?');
+ my $uri = &Apache::lonenc::check_encrypt($env{'request.uri'});
return (<<ENDCHECKOUT);
<h2>$lt{'resource'}</h2>
<p>$lt{'id_expln'}</p>
<font color="red">
<p>$lt{'warning'}</p>
</font>
-<form name="checkout" method="POST" action="$env{'request.uri'}">
+<form name="checkout" method="POST" action="$uri">
<input type="hidden" name="doescheckout" value="yes" />
<input type="button" name="checkoutbutton" value="$lt{'checkout'}" onClick="javascript:if (confirm('$lt{'checkout?'}')) { document.checkout.submit(); }" />
</form>
@@ -447,9 +448,10 @@
my ($map)=&Apache::lonnet::decode_symb($symb);
my $foldertitle=&Apache::lonnet::gettitle($map);
&Apache::lonxml::debug("map is $map title is $foldertitle");
+ my $uri = &Apache::lonenc::check_encrypt($env{'request.uri'});
return (<<ENDCHECKOUT);
<h2>The resources in "$foldertitle" are open for a limited time. Once you click the 'Show Resource' button below you have $time to complete all resources "$foldertitle".</h2>
-<form name="markaccess" method="POST" action="$env{'request.uri'}">
+<form name="markaccess" method="POST" action="$uri">
<input type="hidden" name="markaccess" value="yes" />
<input type="button" name="accessbutton" value="Show Resource" onClick="javascript:if (confirm('Start Timer?')) { document.markaccess.submit(); }" />
</form>