diff options
author | Bram Moolenaar <bram@vim.org> | 2010-12-02 14:48:14 +0100 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2010-12-02 14:48:14 +0100 |
commit | 44d14f9d357f949359c81d4fd38ff2ff84385da4 (patch) | |
tree | 23216a94ec36380c0fdc110ff18eef022c3bbd8d | |
parent | 6c243d5fcaa589af22ad5e8a7d1a6a2f9639759a (diff) | |
download | vim-44d14f9d357f949359c81d4fd38ff2ff84385da4.tar.gz |
Problem: Can set environment variables in the sandbox, could be abused.
Solution: Disallow it.
-rw-r--r-- | src/eval.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -2326,7 +2326,7 @@ ex_let_one(arg, tv, copy, endchars, op) else if (endchars != NULL && vim_strchr(endchars, *skipwhite(arg)) == NULL) EMSG(_(e_letunexp)); - else + else if (!check_secure()) { c1 = name[len]; name[len] = NUL; diff --git a/src/version.c b/src/version.c index 3dfb975d..5d96698a 100644 --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 70, +/**/ 69, /**/ 68, |