Mercurial > vim
changeset 10412:836577f4721e v8.0.0100
commit https://github.com/vim/vim/commit/319afe3804741db5a6c188bd69535fa7ed044c62
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Nov 24 18:30:59 2016 +0100
patch 8.0.0100
Problem: Options that are a file name may contain non-filename characters.
Solution: Check for more invalid characters.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 24 Nov 2016 18:45:04 +0100 |
parents | 234b7d552f48 |
children | 2949297fdea9 |
files | src/option.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/option.c +++ b/src/option.c @@ -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; }