Skip to content

Commit

Permalink
Item13556: utf8-encode the postdata from github
Browse files Browse the repository at this point in the history
  • Loading branch information
gac410 committed Jul 24, 2015
1 parent 3483cb2 commit af96bf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Foswiki/Plugins/FoswikiOrgPlugin.pm
Expand Up @@ -9,8 +9,8 @@ use Foswiki::Func;

use constant TRACE => 1;

our $VERSION = '1.02';
our $RELEASE = '1.02';
our $VERSION = '1.03';
our $RELEASE = '1.03';
our $SHORTDESCRIPTION = 'Adds github WebHook to accept push notifications';
our $NO_PREFS_IN_TOPIC = 1;

Expand Down
1 change: 1 addition & 0 deletions lib/Foswiki/Plugins/FoswikiOrgPlugin/Core.pm
Expand Up @@ -58,6 +58,7 @@ sub _githubPush {
# Get the payload for processing

my $payload = $query->param('POSTDATA');
$payload = Foswiki::encode_utf8($payload);

unless ($payload) {
_sendResponse( $response, 400,
Expand Down

0 comments on commit af96bf0

Please sign in to comment.