mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 08:56:29 +00:00
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.
8f130eda47
This commit is contained in:
@@ -2008,6 +2008,10 @@ char_u *did_set_spelllang(win_T *wp)
|
||||
region = NULL;
|
||||
len = (int)STRLEN(lang);
|
||||
|
||||
if (!valid_spellang(lang)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (STRCMP(lang, "cjk") == 0) {
|
||||
wp->w_s->b_cjk = 1;
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user