forked from aniani/vim
patch 8.1.0539: cannot build without the sandbox
Problem: Cannot build without the sandbox.
Solution: Set the secure option instead of using the sandbox. Also restrict
the characters from 'spelllang' that are used for LANG.vim.
(suggested by Yasuhiro Matsumoto)
This commit is contained in:
@@ -7758,10 +7758,13 @@ did_set_string_option(
|
||||
* '.encoding'.
|
||||
*/
|
||||
for (p = q; *p != NUL; ++p)
|
||||
if (vim_strchr((char_u *)"_.,", *p) != NULL)
|
||||
if (!ASCII_ISALPHA(*p) && *p != '-')
|
||||
break;
|
||||
vim_snprintf((char *)fname, 200, "spell/%.*s.vim", (int)(p - q), q);
|
||||
source_runtime(fname, DIP_ALL);
|
||||
if (p > q)
|
||||
{
|
||||
vim_snprintf((char *)fname, 200, "spell/%.*s.vim", (int)(p - q), q);
|
||||
source_runtime(fname, DIP_ALL);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user