diff options
| author | Filipp Gunbin | 2022-10-20 20:41:00 +0300 |
|---|---|---|
| committer | Filipp Gunbin | 2022-10-20 20:52:11 +0300 |
| commit | 937ae0cf55d31c332fba3d96061e2ac3653e5437 (patch) | |
| tree | d77943086f3155583ae1cc8aeae3d1f7c0d346f6 | |
| parent | 1324baea728a11bf650303698881c682105155da (diff) | |
| download | emacs-937ae0cf55d31c332fba3d96061e2ac3653e5437.tar.gz emacs-937ae0cf55d31c332fba3d96061e2ac3653e5437.zip | |
Fix ldapsearch output parsing in ldap-search-internal
* lisp/net/ldap.el (ldap-search-internal): When parsing output, make
sure that file:// matched before opening the file. (bug#58605)
| -rw-r--r-- | lisp/net/ldap.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/net/ldap.el b/lisp/net/ldap.el index 062ff05d69c..ccad8c4edb1 100644 --- a/lisp/net/ldap.el +++ b/lisp/net/ldap.el | |||
| @@ -715,14 +715,14 @@ an alist of attribute/value pairs." | |||
| 715 | (eq (string-match "/\\(.:.*\\)$" value) 0)) | 715 | (eq (string-match "/\\(.:.*\\)$" value) 0)) |
| 716 | (setq value (match-string 1 value))) | 716 | (setq value (match-string 1 value))) |
| 717 | ;; Do not try to open non-existent files | 717 | ;; Do not try to open non-existent files |
| 718 | (if (equal value "") | 718 | (if (match-string 3) |
| 719 | (setq value " ") | 719 | (with-current-buffer bufval |
| 720 | (with-current-buffer bufval | ||
| 721 | (erase-buffer) | 720 | (erase-buffer) |
| 722 | (set-buffer-multibyte nil) | 721 | (set-buffer-multibyte nil) |
| 723 | (insert-file-contents-literally value) | 722 | (insert-file-contents-literally value) |
| 724 | (delete-file value) | 723 | (delete-file value) |
| 725 | (setq value (buffer-string)))) | 724 | (setq value (buffer-string))) |
| 725 | (setq value " ")) | ||
| 726 | (setq record (cons (list name value) | 726 | (setq record (cons (list name value) |
| 727 | record)) | 727 | record)) |
| 728 | (forward-line 1)) | 728 | (forward-line 1)) |