Skip to content

Commit

Permalink
Fix stupid $ typogit add GatewayQuiz.pm!
Browse files Browse the repository at this point in the history
  • Loading branch information
mgage committed Jun 8, 2013
1 parent 4f1efe0 commit 5757160
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/WeBWorK/ContentGenerator/GatewayQuiz.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ sub pre_header_initialize {
foreach my $key (keys %$formFields) {
if ($key =~ /AnSwEr/) {
$formFields->{$key} = $scrubber->scrub(
(defined $formFields->{$key})? $formFields->{key}:'' # using // would be more elegant but breaks perl 5.8.x
(defined $formFields->{$key})? $formFields->{$key}:'' # using // would be more elegant but breaks perl 5.8.x
);
### HTML::scrubber is a little too enthusiastic about
### removing > and < so we have to add them back in otherwise
Expand Down
2 changes: 1 addition & 1 deletion lib/WeBWorK/ContentGenerator/Problem.pm
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ sub pre_header_initialize {
foreach my $key (keys %$formFields) {
if ($key =~ /AnSwEr/) {
$formFields->{$key} = $scrubber->scrub(
(defined $formFields->{$key})? $formFields->{key}:'' # using // would be more elegant but breaks perl 5.8.x
(defined $formFields->{$key})? $formFields->{$key}:'' # using // would be more elegant but breaks perl 5.8.x
);
### HTML::scrubber is a little too enthusiastic about
### removing > and < so we have to add them back in otherwise
Expand Down

0 comments on commit 5757160

Please sign in to comment.