[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /homework externalresponse.pm

raeburn raeburn at source.lon-capa.org
Wed Feb 26 15:52:11 EST 2014


raeburn		Wed Feb 26 20:52:11 2014 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/homework	externalresponse.pm 
  Log:
  - For 2.11
    - Backport 1.26.
  
  
Index: loncom/homework/externalresponse.pm
diff -u loncom/homework/externalresponse.pm:1.19 loncom/homework/externalresponse.pm:1.19.10.1
--- loncom/homework/externalresponse.pm:1.19	Fri Apr 29 00:32:08 2011
+++ loncom/homework/externalresponse.pm	Wed Feb 26 20:52:11 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # external style responses
 #
-# $Id: externalresponse.pm,v 1.19 2011/04/29 00:32:08 www Exp $
+# $Id: externalresponse.pm,v 1.19.10.1 2014/02/26 20:52:11 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -135,7 +135,8 @@
 	&Apache::response::setup_prior_tries_hash(\&format_prior_response);
         if (&Apache::response::show_answer()) {
            $result.='<table border="1"><tr><th>'.&mt('Your answer:').'</th></tr><tr><td><pre>'.
-                    $Apache::lonhomework::history{"resource.$part.$id.submission"}.
+                    &HTML::Entities::encode(
+                        $Apache::lonhomework::history{"resource.$part.$id.submission"},'"<>&').
                     '</pre></td></table><br />'.&Apache::lonxml::get_param('answerdisplay',$parstack,$safeeval).
                     '<br />';
         }




More information about the LON-CAPA-cvs mailing list