tilde is a safe character in user URLs

Chrome unconditionally reverts any not-strictly-necessary escaping in URLs (this seems wrong?)
This commit is contained in:
Min RK
2018-05-28 13:46:52 +02:00
parent f364661363
commit 0c5d564830
2 changed files with 30 additions and 3 deletions

View File

@@ -282,7 +282,7 @@ class User:
@property
def escaped_name(self):
"""My name, escaped for use in URLs, cookies, etc."""
return quote(self.name, safe='@')
return quote(self.name, safe='@~')
@property
def proxy_spec(self):