aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-26 08:17:08 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-26 17:38:30 -0500
commit08c5a874ab97d52e215025ccd010d68fcdf14731 (patch)
treedf47490305b3c01878863ee47a08a7da882b0d59 /test
parent6f073ccbf464e2f2cd6d6855aa3f27ee1adcc20d (diff)
downloadrneovim-08c5a874ab97d52e215025ccd010d68fcdf14731.tar.gz
rneovim-08c5a874ab97d52e215025ccd010d68fcdf14731.tar.bz2
rneovim-08c5a874ab97d52e215025ccd010d68fcdf14731.zip
vim-patch:8.1.1143: may pass weird strings to file name expansion
Problem: May pass weird strings to file name expansion. Solution: Check for matching characters. Disallow control characters. https://github.com/vim/vim/commit/8f130eda4747e4a4d68353cdb650f359fd01469b
Diffstat (limited to 'test')
-rw-r--r--test/functional/legacy/097_glob_path_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/legacy/097_glob_path_spec.lua b/test/functional/legacy/097_glob_path_spec.lua
index ccd93fed60..dd5a26ad3b 100644
--- a/test/functional/legacy/097_glob_path_spec.lua
+++ b/test/functional/legacy/097_glob_path_spec.lua
@@ -52,7 +52,7 @@ describe('glob() and globpath()', function()
command([[$put =glob('Xxx\{')]])
command([[$put =glob('Xxx\$')]])
- command('silent w! Xxx{')
+ command('silent w! Xxx\\{')
command([[w! Xxx\$]])
command([[$put =glob('Xxx\{')]])
command([[$put =glob('Xxx\$')]])