--- loncom/interface/lonprintout.pm 2003/09/30 14:43:26 1.243 +++ loncom/interface/lonprintout.pm 2003/09/30 17:29:26 1.244 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.243 2003/09/30 14:43:26 bowersj2 Exp $ +# $Id: lonprintout.pm,v 1.244 2003/09/30 17:29:26 bowersj2 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1326,6 +1326,10 @@ CHOOSE_FROM_SUBDIR if (!$helper->{VARS}->{'construction'}) { push @$printChoices, ["Resources from selected sequence in course", 'map_problems_pages', 'CHOOSE_SEQUENCE']; + my $escapedSequenceName = $helper->{VARS}->{'SEQUENCE'}; + #Escape apostrophes and backslashes for Perl + $escapedSequenceName =~ s/\\/\\\\/g; + $escapedSequenceName =~ s/'/\\'/g; &Apache::lonxml::xmlparse($r, 'helper', < Select the sequence to print resources from: @@ -1340,7 +1344,7 @@ CHOOSE_FROM_SUBDIR PAGESIZE return $isProblem - return $helper->{VARS}->{'SEQUENCE'}; + return '$escapedSequenceName'; return $symbFilter;