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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user