From 75d42bad79b54654fca9770a2857e79e82d83c3e Mon Sep 17 00:00:00 2001 From: Lubomír Sedlář Date: Jun 21 2023 08:47:11 +0000 Subject: Split git credential data on first = only The value itself can contain a = character, but we don't really care about that. We can treat the value of the key as opaque. Fixes: https://pagure.io/rpkg/issue/694 Signed-off-by: Lubomír Sedlář --- diff --git a/pyrpkg/cli.py b/pyrpkg/cli.py index 020a247..1bd7979 100644 --- a/pyrpkg/cli.py +++ b/pyrpkg/cli.py @@ -824,7 +824,7 @@ class cliClient(object): """Parses the git-credential-helper IO format input.""" inp = {} for line in sys.stdin: - vals = line.split('=', 2) + vals = line.split('=', 1) if len(vals) != 2: print('Invalid input: %s' % line, file=sys.stderr) return False