Navigation Menu

Skip to content

Commit

Permalink
Item14377: Entity encode the topic name.
Browse files Browse the repository at this point in the history
  • Loading branch information
gac410 committed May 5, 2017
1 parent dc8f3ac commit 7a62049
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/lib/Foswiki/UI/Rest.pm
Expand Up @@ -101,8 +101,10 @@ sub rest {
if ($topic) {
unless ( $topic =~ m/\.|\// ) {
$res->header( -type => 'text/html', -status => '400' );
$err = 'ERROR: (400) Invalid REST invocation'
. " - Invalid topic parameter $topic\n";
$err =
'ERROR: (400) Invalid REST invocation'
. " - Invalid topic parameter: "
. Foswiki::entityEncode($topic) . "\n";
$res->print($err);
$session->logger->log( 'warning', "REST rejected: " . $err,
" - $referer", );
Expand Down

0 comments on commit 7a62049

Please sign in to comment.