mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* re.c (rb_reg_regcomp): should succeed the taint status from the
origin. [ruby-core:33338] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@29933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0244490c1e
commit
282ec842cc
2 changed files with 6 additions and 0 deletions
|
|
@ -1,3 +1,8 @@
|
|||
Fri Nov 26 10:08:24 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* re.c (rb_reg_regcomp): should succeed the taint status from the
|
||||
origin. [ruby-core:33338]
|
||||
|
||||
Wed Nov 24 15:44:11 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/socket/extconf.rb (getaddrinfo): should initialize winsock on
|
||||
|
|
|
|||
1
re.c
1
re.c
|
|
@ -1509,6 +1509,7 @@ rb_reg_regcomp(str)
|
|||
case_cache = ruby_ignorecase;
|
||||
kcode_cache = reg_kcode;
|
||||
reg_cache = rb_reg_new(RSTRING(str)->ptr, RSTRING(str)->len, ruby_ignorecase);
|
||||
OBJ_INFECT(reg_cache, str);
|
||||
RB_GC_GUARD(save_str);
|
||||
return reg_cache;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue