added URL encoding
git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portal/invites-common-library@158947 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
42b2c76d13
commit
cc064bf15a
|
@ -1,5 +1,6 @@
|
|||
package org.gcube.portal.invites;
|
||||
|
||||
import java.net.URLEncoder;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
@ -118,13 +119,15 @@ public class InvitesManager {
|
|||
|
||||
long groupId = PortalContext.getConfiguration().getCurrentGroupId(request);
|
||||
|
||||
StringBuilder getParamsEncoded = new StringBuilder(new String(Base64.encodeBase64(INVITEID_ATTR.getBytes())))
|
||||
;
|
||||
|
||||
StringBuilder getParamsEncoded = new StringBuilder(URLEncoder.encode(new String(Base64.encodeBase64(INVITEID_ATTR.getBytes())), "UTF-8"))
|
||||
.append("=")
|
||||
.append(new String(Base64.encodeBase64(invite.getKey().getBytes())))
|
||||
.append(URLEncoder.encode(new String(Base64.encodeBase64(invite.getKey().getBytes())), "UTF-8"))
|
||||
.append("&")
|
||||
.append(new String(Base64.encodeBase64(SITEID_ATTR.getBytes())))
|
||||
.append(URLEncoder.encode(new String(Base64.encodeBase64(SITEID_ATTR.getBytes())), "UTF-8"))
|
||||
.append("=")
|
||||
.append(new String(Base64.encodeBase64((""+groupId).getBytes())));
|
||||
.append(URLEncoder.encode(new String(Base64.encodeBase64((""+groupId).getBytes())), "UTF-8"));
|
||||
|
||||
StringBuilder linkToAcceptInvite = new StringBuilder(gatewayURL)
|
||||
.append("/")
|
||||
|
|
Loading…
Reference in New Issue