commit | 3d43a6658c6b2d44aebde338c09e2c153bad5843 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Apr 27 20:15:55 2007 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Apr 27 20:15:55 2007 +0000 |
tree | 05c0e2b2c41cb1e222d1e4220d5058474fc5db9a | |
parent | bbe8c3f735afa448d0fb9d84e67ffcd2ab11009d [diff] [blame] |
updated for version 7.0-234
diff --git a/src/eval.c b/src/eval.c index 7a5ca1d..cfb3476 100644 --- a/src/eval.c +++ b/src/eval.c
@@ -9078,6 +9078,12 @@ int typed = FALSE; char_u *keys_esc; + /* This is not allowed in the sandbox. If the commands would still be + * executed in the sandbox it would be OK, but it probably happens later, + * when "sandbox" is no longer set. */ + if (check_secure()) + return; + rettv->vval.v_number = 0; keys = get_tv_string(&argvars[0]); if (*keys != NUL)