summaryrefslogtreecommitdiff
path: root/oauth.py
diff options
context:
space:
mode:
authorRichard Jones <richard@mechanicalcat.net>2012-07-24 09:39:00 +1000
committerRichard Jones <richard@mechanicalcat.net>2012-07-24 09:39:00 +1000
commit27223c126974574896dc18fc631ff51856f8dfef (patch)
treee54dca08ff9d5e92df5fbadb408b3426931a5e0c /oauth.py
parent1b2b048c9036af40a145b8ac4847d60d9d463541 (diff)
downloaddecorator-27223c126974574896dc18fc631ff51856f8dfef.tar.gz
fixes to OAuth; in particular the escaping of & was incorrect in upstream oauth.py, but also some tightening of the API
Diffstat (limited to 'oauth.py')
-rw-r--r--oauth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oauth.py b/oauth.py
index 1b9f9a5..dce9169 100644
--- a/oauth.py
+++ b/oauth.py
@@ -52,7 +52,7 @@ def build_authenticate_header(realm=''):
def escape(s):
"""Escape a URL including any /."""
- return urllib.quote(s, safe='~&')
+ return urllib.quote(s, safe='~')
def _utf8_str(s):
"""Convert unicode to utf-8."""