fixup! org-man-open: Fix shell expansion vulnerability (Emacs bug#66390)
The escaped string is not necessary "\\;id" on Windows/DOS.
This commit is contained in:
parent
6b60b5ac12
commit
4145ee4211
|
@ -50,9 +50,9 @@ matched strings in man buffer."
|
||||||
(let* ((command (match-string 1 path))
|
(let* ((command (match-string 1 path))
|
||||||
;; FIXME: Remove after we drop Emacs 29 support.
|
;; FIXME: Remove after we drop Emacs 29 support.
|
||||||
;; Working around security bug #66390.
|
;; Working around security bug #66390.
|
||||||
(command (if (equal (Man-translate-references ";id") "\\;id")
|
(command (if (not (equal (Man-translate-references ";id") ";id"))
|
||||||
;; We are on Emacs that properly escapes man
|
;; We are on Emacs that escapes man command args
|
||||||
;; command args (see Emacs commit 820f0793f0b).
|
;; (see Emacs commit 820f0793f0b).
|
||||||
command
|
command
|
||||||
;; Older Emacs without the fix - escape the
|
;; Older Emacs without the fix - escape the
|
||||||
;; arguments ourselves.
|
;; arguments ourselves.
|
||||||
|
|
Loading…
Reference in New Issue