diff src/server/utils.py @ 1027:46ce20494a1b

server (utils): added "safe" attribute to quote
author Goffi <goffi@goffi.org>
date Mon, 22 Jan 2018 08:53:03 +0100
parents 2cb60ef2a76f
children f2170536ba23
line wrap: on
line diff
--- a/src/server/utils.py	Sun Jan 21 21:08:38 2018 +0100
+++ b/src/server/utils.py	Mon Jan 22 08:53:03 2018 +0100
@@ -19,6 +19,6 @@
 import urllib
 
 
-def quote(value):
+def quote(value, safe='@'):
     """shortcut to quote an unicode value for URL"""
-    return urllib.quote(value.encode('utf-8'), safe='@')
+    return urllib.quote(value.encode('utf-8'), safe=safe)