Skip to content
Browse files

Fixed a bug that OpenSocial plugin cannot handle multiple same name q…

…ueryparameter
  • Loading branch information...
1 parent fc24144 commit 34866569d081979d8a7233cc9c7569f039e073a1 @typester typester committed with Songmu Nov 12, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Moxy/Plugin/OpenSocial.pm
View
4 lib/Moxy/Plugin/OpenSocial.pm
@@ -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;
@@ -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');

0 comments on commit 3486656

Please sign in to comment.
Something went wrong with that request. Please try again.