diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-04-10 22:15:19 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-04-10 22:15:19 +0200 |
commit | 8f130eda4747e4a4d68353cdb650f359fd01469b (patch) | |
tree | 0c07f9b0d8203788f1929ad8383839020f1f41cb /src/testdir/test_spell.vim | |
parent | 3fb01a53c685d8d7e7bd83c33500de80aed0d7c8 (diff) | |
download | vim-git-8f130eda4747e4a4d68353cdb650f359fd01469b.tar.gz |
patch 8.1.1143: may pass weird strings to file name expansionv8.1.1143
Problem: May pass weird strings to file name expansion.
Solution: Check for matching characters. Disallow control characters.
Diffstat (limited to 'src/testdir/test_spell.vim')
-rw-r--r-- | src/testdir/test_spell.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testdir/test_spell.vim b/src/testdir/test_spell.vim index 76ad12e4c..6bf43ac3f 100644 --- a/src/testdir/test_spell.vim +++ b/src/testdir/test_spell.vim @@ -149,6 +149,12 @@ func Test_spellinfo() set nospell spelllang=en call assert_fails('spellinfo', 'E756:') + call assert_fails('set spelllang=foo/bar', 'E474:') + call assert_fails('set spelllang=foo\ bar', 'E474:') + call assert_fails("set spelllang=foo\\\nbar", 'E474:') + call assert_fails("set spelllang=foo\\\rbar", 'E474:') + call assert_fails("set spelllang=foo+bar", 'E474:') + set enc& spell& spelllang& bwipe endfunc |