author | ymh <ymh.work@gmail.com> |
Wed, 03 Jul 2024 14:26:30 +0200 | |
changeset 369 | 1395a729018f |
parent 0 | 87104b7cb3d6 |
permissions | -rw-r--r-- |
0 | 1 |
diff -r 7ea87e3229fd5c4eebd0 oauth2/__init__.py |
2 |
@@ -385,386 +385,391 @@ |
|
3 |
url_items = self._split_url_string(query).items() |
|
4 |
non_oauth_url_items = list([(k, v) for k, v in url_items if not k.startswith('oauth_')]) |
|
5 |
|
|
6 |
- items.extend(non_oauth_url_items) |
|
7 |
+ for (key,value) in non_oauth_url_items: |
|
8 |
+ if (key,value) not in items: |
|
9 |
+ items.append((key,value)) |
|
10 |
|
|
11 |
encoded_str = urllib.urlencode(sorted(items)) |