diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-06-06 07:40:31 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-06-06 07:40:31 +0000 |
commit | f0ccffd530ff4faafe6f07df94818e807b96f851 (patch) | |
tree | 6e79e20879d3ea025b6eda42b0084f56789772d0 /eval.c | |
parent | 7c9c33e9add999d2c9a9073de5130936e4124c9c (diff) |
* eval.c (rb_load): should check if tainted even when wrap is
specified.
* regex.c (re_compile_pattern): too much optimization for the
cases like /(.|a)b/.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -5167,12 +5167,7 @@ rb_load(fname, wrap) NODE *saved_cref = ruby_cref; TMP_PROTECT; - if (wrap) { - StringValue(fname); - } - else { - SafeStringValue(fname); - } + SafeStringValue(fname); file = rb_find_file(RSTRING(fname)->ptr); if (!file) { rb_raise(rb_eLoadError, "No such file to load -- %s", RSTRING(fname)->ptr); |