diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-26 01:08:55 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-26 01:08:55 +0000 |
commit | 282ec842cc4f98872808e304956c752548e44e93 (patch) | |
tree | f5489b55f1199060ccc265c96dfa1cc3ab510856 /re.c | |
parent | 0244490c1eac9b1db72ba8f926c5dc437f562f5a (diff) |
* 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
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |