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:
@@ -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))
|
||||||
{
|
{
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user