[LON-CAPA-cvs] cvs: loncom /homework functionplotresponse.pm

www www at source.lon-capa.org
Tue Oct 18 20:20:29 EDT 2011


www		Wed Oct 19 00:20:29 2011 EDT

  Modified files:              
    /loncom/homework	functionplotresponse.pm 
  Log:
  In ruleslog, single quotes need to be escaped to JavaScript
  
  
Index: loncom/homework/functionplotresponse.pm
diff -u loncom/homework/functionplotresponse.pm:1.66 loncom/homework/functionplotresponse.pm:1.67
--- loncom/homework/functionplotresponse.pm:1.66	Fri Oct 14 00:40:24 2011
+++ loncom/homework/functionplotresponse.pm	Wed Oct 19 00:20:28 2011
@@ -1,7 +1,7 @@
 # LearningOnline Network with CAPA
 # option list style responses
 #
-# $Id: functionplotresponse.pm,v 1.66 2011/10/14 00:40:24 www Exp $
+# $Id: functionplotresponse.pm,v 1.67 2011/10/19 00:20:28 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -973,6 +973,7 @@
 
 sub addlog {
    my ($text)=@_;
+   $text=~s/\'/\\\'/g;
    $Apache::functionplotresponse::ruleslog.=$text.'<br />';
 }
 




More information about the LON-CAPA-cvs mailing list