pass-otp icon indicating copy to clipboard operation
pass-otp copied to clipboard

Fix HOTP counter increases

Open jorti opened this issue 1 year ago • 1 comments

When substituting the counter in a HOTP uri, the replacement string needs to be quoted because it contains a &. Quoting it will avoid & to be replaced with the matching portion of the pattern.

See: https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html

Fixes #171

jorti avatar Nov 05 '22 06:11 jorti

@tadfisher is there any chance you could merge this soon? As long as this isn't fixed, pass-otp does not work with bash 5.2 (at least not for HOTP).

fstecker avatar Nov 15 '23 17:11 fstecker