changeset 1109:c9b7b1e711d1 v7.0.235

updated for version 7.0-235
author vimboss
date Sun, 29 Apr 2007 11:53:56 +0000
parents b515624f6d7d
children b77f790d53f6
files src/eval.c src/version.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -15598,6 +15598,9 @@ f_system(argvars, rettv)
     int		err = FALSE;
     FILE	*fd;
 
+    if (check_restricted() || check_secure())
+	return;
+
     if (argvars[1].v_type != VAR_UNKNOWN)
     {
 	/*
@@ -16431,6 +16434,9 @@ f_writefile(argvars, rettv)
     int		ret = 0;
     int		c;
 
+    if (check_restricted() || check_secure())
+	return;
+
     if (argvars[0].v_type != VAR_LIST)
     {
 	EMSG2(_(e_listarg), "writefile()");
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    235,
+/**/
     234,
 /**/
     233,