Skip to content

Commit

Permalink
Item13405: prepare for NFC/NFD normalisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Comment committed Jun 2, 2015
1 parent bc22e7f commit 57a2ddc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ModPerlEngineContrib/lib/Foswiki/Engine/Apache.pm
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ sub prepareBodyParameters {
}
my $upname = $pname;
if ($Foswiki::UNICODE) {
@values = map { Encode::decode_utf8($_) } @values;
$upname = Encode::decode_utf8($pname);
@values = map { Foswiki::decode_utf8($_) } @values;
$upname = Foswiki::decode_utf8($pname);
}

$req->bodyParam( -name => $upname, -value => \@values );
Expand All @@ -199,7 +199,7 @@ sub prepareBodyParameters {
else {
if ( $req->header('Content-type') =~ m#application/json# ) {
$this->{query}->read( my $data, $contentLength );
$data = Encode::decode_utf8($data) if $Foswiki::UNICODE;
$data = Foswiki::decode_utf8($data) if $Foswiki::UNICODE;
$req->bodyParam( -name => 'POSTDATA', -value => $data );
}
}
Expand Down

0 comments on commit 57a2ddc

Please sign in to comment.