From f042af3ab09f8888abf05ebc120a013a63c64c98 Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Fri, 18 May 2018 16:40:01 +0200 Subject: [PATCH] Optimize URL escape calls (#595) --- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/Twitter.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/Twitter.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/Twitter.pm index 454822273..6b4453c13 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/Twitter.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Auth/Twitter.pm @@ -79,11 +79,9 @@ sub extractFormInfo { # 1.1 Try to get token to dialog with Twitter my $callback_url = $self->p->fullUrl($req); - my %prm = ( twitterback => 1 ); # Twitter callback parameter - $callback_url .= - ( $callback_url =~ /\?/ ? '&' : '?' ) . "twitterback=1"; + my %prm = ( twitterback => 1 ); # Add request state parameters if ( $req->datas->{_url} ) {