Skip to content

Commit 0825ff6

Browse files
committed
UTF8 safe base64 encoding
1 parent 9a506dc commit 0825ff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WeBWorK/ContentGenerator.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1711,7 +1711,7 @@ sub feedbackMacro_form {
17111711
if ($key eq 'pg_object') {
17121712
my $tmp = $value->{body_text};
17131713
$tmp .= CGI::p(CGI::b("Note: "). CGI::i($value->{result}->{msg})) if $value->{result}->{msg} ;
1714-
$result .= CGI::hidden($key, encode_base64($tmp, "") );
1714+
$result .= CGI::hidden($key, encode_base64(Encode::encode('UTF-8', $tmp), "") );
17151715
} else {
17161716
$result .= CGI::hidden($key, $value) . "\n";
17171717
}

0 commit comments

Comments
 (0)