Skip to content

Commit

Permalink
Fixed a bug that OpenSocial plugin cannot handle multiple same name q…
Browse files Browse the repository at this point in the history
…ueryparameter
  • Loading branch information
typester authored and Songmu committed Nov 12, 2012
1 parent fc24144 commit 3486656
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Moxy/Plugin/OpenSocial.pm
Expand Up @@ -4,6 +4,7 @@ use warnings;
use base 'Moxy::Plugin';

use URI::Escape;
use URI::QueryParam;
use OAuth::Lite::Consumer;
use HTML::TreeBuilder;
use Encode;
Expand Down Expand Up @@ -60,7 +61,8 @@ sub request_filter :Hook {
);

my $req = $args->{request};
my %param = $req->uri->query_form;
my %param = %{ $req->uri->query_form_hash };

$param{opensocial_app_id} = $args->{session}->get('opensocial_app_id');
$param{opensocial_owner_id} = $args->{session}->get('opensocial_owner_id');
$param{opensocial_viewer_id} = $args->{session}->get('opensocial_owner_id');
Expand Down

0 comments on commit 3486656

Please sign in to comment.