qute-pass: Escape backslashes, so that they are inserted correctly
This commit is contained in:
parent
178eeaed0d
commit
c2472d88f1
@ -158,6 +158,9 @@ def main(arguments):
|
|||||||
return ExitCodes.COULD_NOT_MATCH_PASSWORD
|
return ExitCodes.COULD_NOT_MATCH_PASSWORD
|
||||||
password = match.group(1)
|
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 ''
|
insert_mode = ';; enter-mode insert' if arguments.insert_mode else ''
|
||||||
if arguments.username_only:
|
if arguments.username_only:
|
||||||
qute_command('fake-key {}{}'.format(username, insert_mode))
|
qute_command('fake-key {}{}'.format(username, insert_mode))
|
||||||
|
Loading…
Reference in New Issue
Block a user