Mercurial > libervia-web
changeset 1027:46ce20494a1b
server (utils): added "safe" attribute to quote
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 22 Jan 2018 08:53:03 +0100 |
parents | 38cfee0eed48 |
children | ad97d7e7de3b |
files | src/server/utils.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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)