]> granicus.if.org Git - vim/commitdiff
patch 8.0.0106 v8.0.0106
authorBram Moolenaar <Bram@vim.org>
Tue, 29 Nov 2016 21:10:48 +0000 (22:10 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 29 Nov 2016 21:10:48 +0000 (22:10 +0100)
Problem:    Cannot use a semicolon in 'backupext'. (Jeff)
Solution:   Allow for a few more characters when "secure" isn't set.

src/option.c
src/version.c

index fae10b6a2ea4da0491f7e04dd7e768e246767188..7356816b6b512336bbd257a62ad78b7d4707d687 100644 (file)
@@ -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))
     {
index 02d1be454b9f324d6ab7b6bea7935c9612784f42..152d4d87c82d97cbfc9461ad43c8841b5fc618d8 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    106,
 /**/
     105,
 /**/