mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (rb_str_intern): need not to check if tainted.
[ruby-dev:34219] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bdc00ba604
commit
5572494524
2 changed files with 5 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Apr 7 02:12:27 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* string.c (rb_str_intern): need not to check if tainted.
|
||||
[ruby-dev:34219]
|
||||
|
||||
Sun Apr 6 09:45:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* dir.c (dir_tell): check if closed. [ruby-core:16223]
|
||||
|
|
3
string.c
3
string.c
|
@ -5792,9 +5792,6 @@ rb_str_intern(VALUE s)
|
|||
VALUE str = RB_GC_GUARD(s);
|
||||
ID id;
|
||||
|
||||
if (OBJ_TAINTED(str) && rb_safe_level() >= 1) {
|
||||
rb_raise(rb_eSecurityError, "Insecure: can't intern tainted string");
|
||||
}
|
||||
id = rb_intern_str(str);
|
||||
return ID2SYM(id);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue