diff options
author | geeseven <2334728+geeseven@users.noreply.github.com> | 2021-01-02 06:29:54 -0600 |
---|---|---|
committer | geeseven <2334728+geeseven@users.noreply.github.com> | 2021-01-02 06:29:54 -0600 |
commit | 6ade0c3bd4c262cce1b1f42a17ae2163ea803c16 (patch) | |
tree | bbf53ef3c34c6cfbc9369213cb75fefc3190b646 | |
parent | 6c2f1557637174fe924b9f4354b429a0d0228d19 (diff) | |
download | qutebrowser-6ade0c3bd4c262cce1b1f42a17ae2163ea803c16.tar.gz qutebrowser-6ade0c3bd4c262cce1b1f42a17ae2163ea803c16.zip |
encode URL when checking if it has been bookmarked
URLs with '#' were not getting identified correctly when getting checked. Encoding the URL fixes this.
-rwxr-xr-x | misc/userscripts/add-nextcloud-bookmarks | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/userscripts/add-nextcloud-bookmarks b/misc/userscripts/add-nextcloud-bookmarks index 4e66620dc..cace1fd32 100755 --- a/misc/userscripts/add-nextcloud-bookmarks +++ b/misc/userscripts/add-nextcloud-bookmarks @@ -42,7 +42,7 @@ from os import environ, path from sys import argv, exit from PyQt5.QtWidgets import QApplication, QInputDialog, QLineEdit -from requests import get, post +from requests import get, post, utils from requests.auth import HTTPBasicAuth @@ -125,7 +125,7 @@ auth = HTTPBasicAuth(settings["user"], settings["password"]) # check if there is already a bookmark for the URL r = get( - "{}?url={}".format(api_url, QUTE_URL), + "{}?url={}".format(api_url, utils.quote(QUTE_URL, safe="")), auth=auth, headers=headers, timeout=(3.05, 27), |