Skip to content

Commit 319afe3

Browse files
committed
patch 8.0.0100
Problem: Options that are a file name may contain non-filename characters. Solution: Check for more invalid characters.
1 parent 7309528 commit 319afe3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/option.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5880,7 +5880,7 @@ did_set_string_option(
58805880
* separator (slash and/or backslash), wildcards and characters that are
58815881
* often illegal in a file name. */
58825882
else if ((options[opt_idx].flags & P_NFNAME)
5883-
&& vim_strpbrk(*varp, (char_u *)"/\\*?[|<>") != NULL)
5883+
&& vim_strpbrk(*varp, (char_u *)"/\\*?[|;&<>\r\n") != NULL)
58845884
{
58855885
errmsg = e_invarg;
58865886
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
100,
767769
/**/
768770
99,
769771
/**/

0 commit comments

Comments
 (0)