diff 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
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='@')