Skip to content

Commit

Permalink
Item13478: And encoding url early breaks TablePlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
gac410 committed Jun 29, 2015
1 parent 9e23f52 commit 48bcacb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions TablePlugin/lib/Foswiki/Plugins/TablePlugin/Core.pm
Expand Up @@ -1894,8 +1894,11 @@ sub handler {
$cgi->delete( 'sortcol', 'table', 'up' );
$url = $cgi->url( -absolute => 1, -path => 1 ) . '?';
my $queryString = $cgi->query_string();
$url .= $queryString . ';' if $queryString;
$url = Foswiki::decode_utf8($url) if $Foswiki::UNICODE;
if ($queryString) {
$queryString = Foswiki::decode_utf8($queryString)
if $Foswiki::UNICODE;
$url .= $queryString . ';';
}

# Restore parameters, so we don't interfere on the remaining execution
$cgi->param( -name => 'sortcol', -value => \@origSort ) if @origSort;
Expand Down

0 comments on commit 48bcacb

Please sign in to comment.