thread.c: error message
* thread.c (rb_thread_variable_get): fix error message. getter doesn't modify thread variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
106595827a
commit
f00035a4f7
2
thread.c
2
thread.c
@ -2870,7 +2870,7 @@ rb_thread_variable_get(VALUE thread, VALUE id)
|
||||
GetThreadPtr(thread, th);
|
||||
|
||||
if (rb_safe_level() >= 4 && th != GET_THREAD()) {
|
||||
rb_raise(rb_eSecurityError, "Insecure: can't modify thread locals");
|
||||
rb_raise(rb_eSecurityError, "Insecure: can't access thread locals");
|
||||
}
|
||||
|
||||
locals = rb_iv_get(thread, "locals");
|
||||
|
Loading…
x
Reference in New Issue
Block a user