changeset 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 6dc90f109e57
children 2ae3b6291456
files src/server/utils.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/server/utils.py	Sun Jan 21 13:17:49 2018 +0100
+++ b/src/server/utils.py	Sun Jan 21 20:21:46 2018 +0100
@@ -21,4 +21,4 @@
 
 def quote(value):
     """shortcut to quote an unicode value for URL"""
-    return urllib.quote_plus(value.encode('utf-8')).replace('%40','@')
+    return urllib.quote(value.encode('utf-8'), safe='@')