Permalink
Browse files

patch 8.0.0106

Problem:    Cannot use a semicolon in 'backupext'. (Jeff)
Solution:   Allow for a few more characters when "secure" isn't set.
  • Loading branch information...
1 parent 4b785f6 commit 0945eaface83e78138fbd40f95cc590bab0e8c86 @brammool brammool committed Nov 29, 2016
Showing with 6 additions and 2 deletions.
  1. +4 −2 src/option.c
  2. +2 −0 src/version.c
View
@@ -5879,9 +5879,11 @@ did_set_string_option(
/* Check for a "normal" directory or file name in some options. Disallow a
* path separator (slash and/or backslash), wildcards and characters that
- * are often illegal in a file name. */
+ * are often illegal in a file name. Be more permissive if "secure" is off.
+ */
else if (((options[opt_idx].flags & P_NFNAME)
- && vim_strpbrk(*varp, (char_u *)"/\\*?[|;&<>\r\n") != NULL)
+ && vim_strpbrk(*varp, (char_u *)(secure
+ ? "/\\*?[|;&<>\r\n" : "/\\*?[<>\r\n")) != NULL)
|| ((options[opt_idx].flags & P_NDNAME)
&& vim_strpbrk(*varp, (char_u *)"*?[|;&<>\r\n") != NULL))
{
View
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 106,
+/**/
105,
/**/
104,

0 comments on commit 0945eaf

Please sign in to comment.