Skip to content

Commit

Permalink
Item13378: have to decode to unicode, or validation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Comment committed May 19, 2015
1 parent e596351 commit f9a32da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/lib/Foswiki.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2814,6 +2814,7 @@ sub urlDecode {
my $text = shift;

$text =~ s/%([\da-f]{2})/chr(hex($1))/gei;
$text = Encode::decode_utf8($text);

return $text;
}
Expand Down

0 comments on commit f9a32da

Please sign in to comment.