Removed restricted mode - Fix #11972

This commit is contained in:
georg3tom
2020-03-09 02:20:20 +05:30
committed by Björn Linse
parent 0a95549d66
commit 7777532ceb
15 changed files with 55 additions and 200 deletions

View File

@@ -150,11 +150,11 @@ int os_expand_wildcards(int num_pat, char_u **pat, int *num_file,
return FAIL;
}
// Don't allow the use of backticks in secure and restricted mode.
if (secure || restricted) {
// Don't allow the use of backticks in secure.
if (secure) {
for (i = 0; i < num_pat; i++) {
if (vim_strchr(pat[i], '`') != NULL
&& (check_restricted() || check_secure())) {
&& (check_secure())) {
return FAIL;
}
}