diff options
author | Jimmy <jimmy@spalge.com> | 2022-04-25 14:37:11 +1200 |
---|---|---|
committer | Jimmy <jimmy@spalge.com> | 2022-04-25 14:37:11 +1200 |
commit | 6250cda2e1f036755929c6c0f857b7cef0931424 (patch) | |
tree | f10b60ee4d40e1df723ecd3e557726cab953b319 | |
parent | 65345eab9572fe2426eb8292aa4ab734c099576f (diff) | |
parent | dc83634e1ac1dfbcea0c911b3ce9ffd6c805315d (diff) | |
download | qutebrowser-6250cda2e1f036755929c6c0f857b7cef0931424.tar.gz qutebrowser-6250cda2e1f036755929c6c0f857b7cef0931424.zip |
Merge pull request #7123 from pylbrecht/bitwarden-userscript-url-matching
Fix qute-bitwarden userscript URL matching for multi level subdomains
The qute-bitwarden userscript is not able to autofill for a multi-level subdomain URLs (e.g. `http://my.sub.domain.local/`).
qute-bitwarden exits with status code 2 and returns the following on stderr:
```
No pass candidates for URL 'http://my.sub.domain.local/' found!
```
Joining the extracted subdomain and domain with a `.` solves the issue.
-rwxr-xr-x | misc/userscripts/qute-bitwarden | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/userscripts/qute-bitwarden b/misc/userscripts/qute-bitwarden index a44e08a14..a30f734f2 100755 --- a/misc/userscripts/qute-bitwarden +++ b/misc/userscripts/qute-bitwarden @@ -212,7 +212,7 @@ def main(arguments): for target in filter(None, [ extract_result.fqdn, extract_result.registered_domain, - extract_result.subdomain + extract_result.domain, + extract_result.subdomain + '.' + extract_result.domain, extract_result.domain, extract_result.ipv4]): target_candidates = json.loads( |