diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | re.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Fri Nov 26 10:08:24 2010 NAKAMURA Usaku <[email protected]> + + * 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 <[email protected]> * ext/socket/extconf.rb (getaddrinfo): should initialize winsock on @@ -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; } |