Skip to content

Commit

Permalink
Item13461: unintentional double-encoding on rest response
Browse files Browse the repository at this point in the history
  • Loading branch information
Crawford Currie committed Jun 17, 2015
1 parent 1c3cc4a commit 986bef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SubscribePlugin/lib/Foswiki/Plugins/SubscribePlugin.pm
Expand Up @@ -101,7 +101,7 @@ sub _SUBSCRIBE {

Foswiki::Plugins::JQueryPlugin::createPlugin("subscribe");

return "<span class='foswikiRequiresChangePermission'>$tmpl</span>";
return $tmpl;
}

# subscribe_topic (topic is used if subscribe_topic is missing)
Expand Down Expand Up @@ -158,7 +158,7 @@ sub _rest_subscribe {
if defined $nonce;
}

$response->body(
$response->print(
JSON::to_json(
{
message => $text,
Expand Down

0 comments on commit 986bef6

Please sign in to comment.