[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master d8157a1: Fix "password" detection in authinfo mode
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master d8157a1: Fix "password" detection in authinfo mode |
Date: |
Sun, 22 Sep 2019 08:35:14 -0400 (EDT) |
branch: master
commit d8157a113396ab1563c4909e26f5717097f47a9e
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Fix "password" detection in authinfo mode
* lisp/auth-source.el (authinfo--hide-passwords): Ensure that we
only hit actual "password" entries and not "foo-password" and the
like.
---
lisp/auth-source.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/auth-source.el b/lisp/auth-source.el
index 9669ae9..6d53a22 100644
--- a/lisp/auth-source.el
+++ b/lisp/auth-source.el
@@ -2416,9 +2416,9 @@ passwords are revealed when point moved into the password.
(save-restriction
(narrow-to-region start end)
(goto-char start)
- (while (re-search-forward "\\bpassword +\\([^\n\t ]+\\)"
+ (while (re-search-forward "\\(\\s-\\|^\\)password\\s-+\\([^\n\t ]+\\)"
nil t)
- (let ((overlay (make-overlay (match-beginning 1) (match-end 1))))
+ (let ((overlay (make-overlay (match-beginning 2) (match-end 2))))
(overlay-put overlay 'display (propertize "****"
'face 'warning))
(overlay-put overlay 'reveal-toggle-invisible
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master d8157a1: Fix "password" detection in authinfo mode,
Lars Ingebrigtsen <=