mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-09 13:40:50 +00:00
Fix ruby-mode.el local command injection vulnerability (bug#60268)
* lisp/progmodes/ruby-mode.el (ruby-find-library-file): Fix local command injection vulnerability.
This commit is contained in:
parent
4b44a395b3
commit
9a3b08061f
1 changed files with 1 additions and 1 deletions
|
@ -1899,7 +1899,7 @@ or `gem' statement around point."
|
||||||
(setq feature-name (read-string "Feature name: " init))))
|
(setq feature-name (read-string "Feature name: " init))))
|
||||||
(let ((out
|
(let ((out
|
||||||
(substring
|
(substring
|
||||||
(shell-command-to-string (concat "gem which " feature-name))
|
(shell-command-to-string (concat "gem which " (shell-quote-argument feature-name)))
|
||||||
0 -1)))
|
0 -1)))
|
||||||
(if (string-match-p "\\`ERROR" out)
|
(if (string-match-p "\\`ERROR" out)
|
||||||
(user-error "%s" out)
|
(user-error "%s" out)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue