mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* dir.c (dir_globs): need taint check. reported by steve
<oksteev at gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5eacf68c2a
commit
ec280ecbe6
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Oct 31 12:51:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* dir.c (dir_globs): need taint check. reported by steve
|
||||||
|
<oksteev at gmail.com>
|
||||||
|
|
||||||
Fri Oct 31 12:42:45 2008 wanabe <s.wanabe@gmail.com>
|
Fri Oct 31 12:42:45 2008 wanabe <s.wanabe@gmail.com>
|
||||||
|
|
||||||
* array.c (rb_ary_decrement_share): fix to work recycling
|
* array.c (rb_ary_decrement_share): fix to work recycling
|
||||||
|
|
2
dir.c
2
dir.c
|
@ -1571,7 +1571,7 @@ dir_globs(long argc, VALUE *argv, int flags)
|
||||||
for (i = 0; i < argc; ++i) {
|
for (i = 0; i < argc; ++i) {
|
||||||
int status;
|
int status;
|
||||||
VALUE str = argv[i];
|
VALUE str = argv[i];
|
||||||
StringValue(str);
|
SafeStringValue(str);
|
||||||
status = push_glob(ary, str, flags);
|
status = push_glob(ary, str, flags);
|
||||||
if (status) GLOB_JUMP_TAG(status);
|
if (status) GLOB_JUMP_TAG(status);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue