summaryrefslogtreecommitdiffstats
path: root/dir.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-31 13:56:15 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-31 13:56:15 +0000
commitac06dd8aef11c9681f10d91e9f069183cec97f28 (patch)
tree499ebc408f7ceb2aefdbfecf4108142da94655a9 /dir.c
parentace6b97aa66d39a16caf7edff76d9fff9befa17f (diff)
downloadruby-ac06dd8aef11c9681f10d91e9f069183cec97f28.tar.gz
ruby-ac06dd8aef11c9681f10d91e9f069183cec97f28.tar.xz
ruby-ac06dd8aef11c9681f10d91e9f069183cec97f28.zip
merged r20074 from trunk into ruby_1_9_1.
* dir.c (dir_globs): need taint check. reported by steve <oksteev at gmail.com> git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
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);
}