1
0
forked from aniani/vim

patch 8.0.0100

Problem:    Options that are a file name may contain non-filename characters.
Solution:   Check for more invalid characters.
This commit is contained in:
Bram Moolenaar
2016-11-24 18:30:59 +01:00
parent 73095288da
commit 319afe3804
2 changed files with 3 additions and 1 deletions

View File

@@ -5880,7 +5880,7 @@ did_set_string_option(
* separator (slash and/or backslash), wildcards and characters that are
* often illegal in a file name. */
else if ((options[opt_idx].flags & P_NFNAME)
&& vim_strpbrk(*varp, (char_u *)"/\\*?[|<>") != NULL)
&& vim_strpbrk(*varp, (char_u *)"/\\*?[|;&<>\r\n") != NULL)
{
errmsg = e_invarg;
}

View File

@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
100,
/**/
99,
/**/