Skip to content

Commit e551e71

Browse files
committed
runtime(tera): use fnameescape() when loading separate syntax files
Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 70afdfc commit e551e71

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

runtime/syntax/tera.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
" Language: Tera
33
" Maintainer: Muntasir Mahmud <muntasir.joypurhat@gmail.com>
44
" Last Change: 2026 Jan 29
5+
" 2026 Mar 31 by Vim project: prevent code execution in filename
56

67
if exists("b:current_syntax")
78
finish
@@ -22,7 +23,7 @@ endif
2223

2324
" Load the underlying language syntax if detected
2425
if s:underlying_filetype != ""
25-
execute "runtime! syntax/" . s:underlying_filetype . ".vim"
26+
execute "runtime! syntax/" . fnameescape(s:underlying_filetype) . ".vim"
2627
unlet! b:current_syntax
2728
else
2829
" Default to HTML if no specific language detected

0 commit comments

Comments
 (0)