From 094290e68fd4dfed851e8f7254d60a1301fe97e2 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 14 May 2004 16:45:40 +0000 Subject: [PATCH] * eval.c (eval): forgot to restore $SAFE value before evaluating compiled node. [ruby-core:02872] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ eval.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 348f48deda..5e16730818 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat May 15 01:41:34 2004 Yukihiro Matsumoto + + * eval.c (eval): forgot to restore $SAFE value before evaluating + compiled node. [ruby-core:02872] + Sat May 15 01:33:12 2004 Yukihiro Matsumoto * range.c (range_each_func): terminates loop if generating value diff --git a/eval.c b/eval.c index 97369021ab..f61717b027 100644 --- a/eval.c +++ b/eval.c @@ -6052,6 +6052,7 @@ eval(self, src, scope, file, line) result = ruby_errinfo; ruby_errinfo = Qnil; node = compile(src, file, line); + ruby_safe_level = safe; if (ruby_nerrs > 0) { compile_error(0); }