Permalink
Browse files

patch 8.0.0100

Problem:    Options that are a file name may contain non-filename characters.
Solution:   Check for more invalid characters.
  • Loading branch information...
1 parent 7309528 commit 319afe3804741db5a6c188bd69535fa7ed044c62 @brammool brammool committed Nov 24, 2016
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/option.c
  2. +2 −0 src/version.c
View
@@ -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
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 100,
+/**/
99,
/**/
98,

0 comments on commit 319afe3

Please sign in to comment.