mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
* string.c (rb_str_intern): raise SecurityError only when $SAFE
level is greater than zero. [ruby-core:08862] * parse.y (rb_interned_p): new function to check if a string is already interned. * string.c (str_to_id): use rb_str_intern(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
803cabaced
commit
23d2c8b624
4 changed files with 25 additions and 5 deletions
1
intern.h
1
intern.h
|
@ -400,6 +400,7 @@ int rb_is_class_id(ID);
|
|||
int rb_is_local_id(ID);
|
||||
int rb_is_junk_id(ID);
|
||||
int rb_symname_p(const char*);
|
||||
int rb_sym_interned_p(VALUE);
|
||||
VALUE rb_backref_get(void);
|
||||
void rb_backref_set(VALUE);
|
||||
VALUE rb_lastline_get(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue