forked from aniani/vim
updated for version 7.0111
This commit is contained in:
@@ -5083,14 +5083,16 @@ mch_expand_wildcards(num_pat, pat, num_file, file, flags)
|
|||||||
if (!have_wildcard(num_pat, pat))
|
if (!have_wildcard(num_pat, pat))
|
||||||
return save_patterns(num_pat, pat, num_file, file);
|
return save_patterns(num_pat, pat, num_file, file);
|
||||||
|
|
||||||
|
# ifdef HAVE_SANDBOX
|
||||||
|
/* Don't allow any shell command in the sandbox. */
|
||||||
|
if (sandbox != 0 && check_secure())
|
||||||
|
return FAIL;
|
||||||
|
# endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Don't allow the use of backticks in secure and restricted mode.
|
* Don't allow the use of backticks in secure and restricted mode.
|
||||||
*/
|
*/
|
||||||
if (secure || restricted
|
if (secure || restricted)
|
||||||
# ifdef HAVE_SANDBOX
|
|
||||||
|| sandbox != 0
|
|
||||||
# endif
|
|
||||||
)
|
|
||||||
for (i = 0; i < num_pat; ++i)
|
for (i = 0; i < num_pat; ++i)
|
||||||
if (vim_strchr(pat[i], '`') != NULL
|
if (vim_strchr(pat[i], '`') != NULL
|
||||||
&& (check_restricted() || check_secure()))
|
&& (check_restricted() || check_secure()))
|
||||||
|
Reference in New Issue
Block a user