Skip to content

Commit

Permalink
Use quote from six.moves.urllib.parse since six.moves.urllib has no a…
Browse files Browse the repository at this point in the history
…ttribute/function quote.
  • Loading branch information
adrianschulz committed Aug 11, 2020
1 parent 41f4e9c commit 5be78be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redomino/tokenrole/tokenroleprovider.py
Expand Up @@ -121,7 +121,7 @@ def getRoles(self, principal_id):
if expire_date.replace(tzinfo=None) > datetime.now():
if token not in request.cookies:
physical_path = self.context.getPhysicalPath()
url_path = urllib.quote('/' + '/'.join(request.physicalPathToVirtualPath(physical_path)))
url_path = urllib.parse.quote('/' + '/'.join(request.physicalPathToVirtualPath(physical_path)))
response.setCookie(name='token',
value=token,
expires=DateTime(expire_date).toZone('GMT').rfc822(),
Expand Down

0 comments on commit 5be78be

Please sign in to comment.