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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 21 Jun 2002 20:36:30 -0000


albertel		Fri Jun 21 16:36:30 2002 EDT

  Modified files:              
    /loncom/homework	optionresponse.pm 
  Log:
  - closing BUG#541
  
  
Index: loncom/homework/optionresponse.pm
diff -u loncom/homework/optionresponse.pm:1.40 loncom/homework/optionresponse.pm:1.41
--- loncom/homework/optionresponse.pm:1.40	Thu May 23 14:02:03 2002
+++ loncom/homework/optionresponse.pm	Fri Jun 21 16:36:30 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # option list style responses
 #
-# $Id: optionresponse.pm,v 1.40 2002/05/23 18:02:03 sakharuk Exp $
+# $Id: optionresponse.pm,v 1.41 2002/06/21 20:36:30 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -132,7 +132,7 @@
     if ($optchanged) {
       $result = "<foilgroup options=\"(";
       foreach my $option (@options) {
-	$option=~s/\'/\\\'/;
+	$option=~s/\'/\\\'/g;
 	&Apache::lonxml::debug("adding option :$option:");
 	$result .="'".$option."',";
       }