From c2472d88f19b78c8a8110d71e83b762322d9565b Mon Sep 17 00:00:00 2001 From: cryzed Date: Fri, 20 Apr 2018 18:21:55 +0200 Subject: [PATCH] qute-pass: Escape backslashes, so that they are inserted correctly --- misc/userscripts/qute-pass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/misc/userscripts/qute-pass b/misc/userscripts/qute-pass index 5bab9db93..3312c6cc9 100755 --- a/misc/userscripts/qute-pass +++ b/misc/userscripts/qute-pass @@ -158,6 +158,9 @@ def main(arguments): return ExitCodes.COULD_NOT_MATCH_PASSWORD password = match.group(1) + # Escape backslash so that they are inserted correctly + password = password.replace('\\', '\\\\') + insert_mode = ';; enter-mode insert' if arguments.insert_mode else '' if arguments.username_only: qute_command('fake-key {}{}'.format(username, insert_mode))