aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/carddav-query
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/carddav-query')
-rwxr-xr-xcontrib/carddav-query8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/carddav-query b/contrib/carddav-query
index f7eaa793..58c5c9c6 100755
--- a/contrib/carddav-query
+++ b/contrib/carddav-query
@@ -243,10 +243,10 @@ def parse_args():
if source is not None:
try:
u = parse.urlparse(source)
- if args.username is None:
- args.username = u.username
- if args.password is None:
- args.password = u.password
+ if args.username is None and u.username is not None:
+ args.username = parse.unquote(u.username)
+ if args.password is None and u.password is not None:
+ args.password = parse.unquote(u.password)
if not args.password and cred_cmd is not None:
args.password = subprocess.check_output(
cred_cmd, shell=True, text=True, encoding="utf-8"