comparison src/server/utils.py @ 1023:2cb60ef2a76f

server (utils): use quote instead of quote_plus
author Goffi <goffi@goffi.org>
date Sun, 21 Jan 2018 20:21:46 +0100
parents f0fc28b3bd1e
children 46ce20494a1b
comparison
equal deleted inserted replaced
1022:6dc90f109e57 1023:2cb60ef2a76f
19 import urllib 19 import urllib
20 20
21 21
22 def quote(value): 22 def quote(value):
23 """shortcut to quote an unicode value for URL""" 23 """shortcut to quote an unicode value for URL"""
24 return urllib.quote_plus(value.encode('utf-8')).replace('%40','@') 24 return urllib.quote(value.encode('utf-8'), safe='@')