mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* variable.c (rb_alias_variable): should not allow variable
aliasing if $SAFE >= 4. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
827a8a23eb
commit
fb7c6c152b
3 changed files with 11 additions and 4 deletions
|
@ -1,6 +1,11 @@
|
||||||
|
Tue May 22 17:10:35 2001 K.Kosako <kosako@sofnec.co.jp>
|
||||||
|
|
||||||
|
* variable.c (rb_alias_variable): should not allow variable
|
||||||
|
aliasing if $SAFE >= 4.
|
||||||
|
|
||||||
Mon May 21 15:26:05 JST 2001 Keiju Ishitsuka <keiju@ishitsuka.com>
|
Mon May 21 15:26:05 JST 2001 Keiju Ishitsuka <keiju@ishitsuka.com>
|
||||||
* lib/irb/multi-irb.rb
|
|
||||||
delete japanese messages.
|
* lib/irb/multi-irb.rb: delete japanese messages.
|
||||||
|
|
||||||
Mon May 21 13:15:25 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Mon May 21 13:15:25 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
|
|
@ -703,6 +703,8 @@ rb_alias_variable(name1, name2)
|
||||||
{
|
{
|
||||||
struct global_entry *entry1, *entry2;
|
struct global_entry *entry1, *entry2;
|
||||||
|
|
||||||
|
if (rb_safe_level() >= 4)
|
||||||
|
rb_raise(rb_eSecurityError, "Insecure: can't alias global variable");
|
||||||
entry1 = rb_global_entry(name1);
|
entry1 = rb_global_entry(name1);
|
||||||
entry2 = rb_global_entry(name2);
|
entry2 = rb_global_entry(name2);
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#define RUBY_VERSION "1.6.4"
|
#define RUBY_VERSION "1.6.4"
|
||||||
#define RUBY_RELEASE_DATE "2001-05-21"
|
#define RUBY_RELEASE_DATE "2001-05-22"
|
||||||
#define RUBY_VERSION_CODE 164
|
#define RUBY_VERSION_CODE 164
|
||||||
#define RUBY_RELEASE_CODE 20010521
|
#define RUBY_RELEASE_CODE 20010522
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue