Commit b8356980 authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: do not build url by joing strings

parent 7abc43c0
from urlparse import urljoin
portal = context.getPortalObject()
person = portal.portal_membership.getAuthenticatedMember().getUserValue()
......@@ -26,7 +28,7 @@ if slapos_master_web_url is None:
# XXX this url is HARDCODED on the client side
# and so, can not be modified
request_url = "%s/%s" % (slapos_master_web_url, "Person_requestComputer")
request_url = urljoin(slapos_master_web_url, "Person_requestComputer")
person.requestToken(request_url=request_url)
access_token_id = context.REQUEST.get("token")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment