From ac06dd8aef11c9681f10d91e9f069183cec97f28 Mon Sep 17 00:00:00 2001 From: yugui Date: Fri, 31 Oct 2008 13:56:15 +0000 Subject: merged r20074 from trunk into ruby_1_9_1. * dir.c (dir_globs): need taint check. reported by steve git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index 3de4c290b..ffc7e05c0 100644 --- a/dir.c +++ b/dir.c @@ -1571,7 +1571,7 @@ dir_globs(long argc, VALUE *argv, int flags) for (i = 0; i < argc; ++i) { int status; VALUE str = argv[i]; - StringValue(str); + SafeStringValue(str); status = push_glob(ary, str, flags); if (status) GLOB_JUMP_TAG(status); } -- cgit