0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.0.0106

Problem:    Cannot use a semicolon in 'backupext'. (Jeff)
Solution:   Allow for a few more characters when "secure" isn't set.
This commit is contained in:
Bram Moolenaar
2016-11-29 22:10:48 +01:00
parent 4b785f69c0
commit 0945eaface
2 changed files with 6 additions and 2 deletions

View File

@@ -5879,9 +5879,11 @@ did_set_string_option(
/* Check for a "normal" directory or file name in some options. Disallow a /* Check for a "normal" directory or file name in some options. Disallow a
* path separator (slash and/or backslash), wildcards and characters that * 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) 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) || ((options[opt_idx].flags & P_NDNAME)
&& vim_strpbrk(*varp, (char_u *)"*?[|;&<>\r\n") != NULL)) && vim_strpbrk(*varp, (char_u *)"*?[|;&<>\r\n") != NULL))
{ {

View File

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