diff src/eval.c @ 1108:b515624f6d7d v7.0.234

updated for version 7.0-234
author vimboss
date Fri, 27 Apr 2007 20:15:55 +0000
parents d75027183cf4
children c9b7b1e711d1
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -9078,6 +9078,12 @@ f_feedkeys(argvars, rettv)
     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)