]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(racket): Use shellescape() to harden the K mapping
authorChristian Brabandt <cb@256bit.org>
Tue, 31 Mar 2026 15:38:30 +0000 (15:38 +0000)
committerChristian Brabandt <cb@256bit.org>
Tue, 31 Mar 2026 15:38:30 +0000 (15:38 +0000)
fyi: @benknoble

Co-authored-by: MichaƂ Majchrowicz <mmajchrowicz@afine.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/racket.vim

index b8004a93afaf52268893b364c7e8098f4b917404..14a98ab790f5a4d95e88fac4b1890dbb6819d847 100644 (file)
@@ -4,6 +4,7 @@
 " Previous Maintainer:  Will Langstroth <will@langstroth.com>
 " URL:                  https://github.com/benknoble/vim-racket
 " Last Change:          2025 Aug 09
+" 2026 Mar 31 by Vim project: use shellescape for the K mapping
 
 if exists("b:did_ftplugin")
   finish
@@ -51,7 +52,7 @@ if !exists("no_plugin_maps") && !exists("no_racket_maps")
     try
       let l:old_a = @a
       normal! gv"ay
-      call system("raco docs '". @a . "'")
+      call system("raco docs '". shellescape(@a) . "'")
       redraw!
       return @a
     finally