]> git.eshelyaron.com Git - emacs.git/commit
lisp/auth-source-pass.el: Keep legitimate spaces inside data
authorTino Calancha <tino.calancha@gmail.com>
Sun, 27 Jun 2021 15:53:30 +0000 (17:53 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 2 Jul 2021 10:53:35 +0000 (12:53 +0200)
commit9eadcfdfe6f7b26ba44360db9f828fdbe7a78fe7
tree802363ba30df135240fcfa6ced076923d6e5a21b
parentc3322729e4eb04539e2b6b9b06088e131c6a84f0
lisp/auth-source-pass.el: Keep legitimate spaces inside data

Users should be able to store a field as follows:
message: remember: Destroy the image and you will break the enemy

and later, recover the message untouched, i.e.:
"remember: Destroy the image and you will break the enemy"

* lisp/auth-source-pass.el (auth-source-pass--parse-data): Preserve
inner spaces at data.
* test/lisp/auth-source-pass-tests.el
(auth-source-pass-parse-with-colons-in-data): Add test.
lisp/auth-source-pass.el
test/lisp/auth-source-pass-tests.el