diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-31 04:40:34 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-31 04:40:34 +0000 |
| commit | d96b4a09cc9e9e91027b1826a088a8cfb87d5c36 (patch) | |
| tree | 93a315c92a2103f38e984c086963bc7678e4c6bb /dir.c | |
| parent | 03d436e9f70adb0868d8168dd2c9090a5c90accf (diff) | |
| download | ruby-d96b4a09cc9e9e91027b1826a088a8cfb87d5c36.tar.gz ruby-d96b4a09cc9e9e91027b1826a088a8cfb87d5c36.tar.xz ruby-d96b4a09cc9e9e91027b1826a088a8cfb87d5c36.zip | |
* dir.c (dir_globs): need taint check. reported by steve
<oksteev at gmail.com>
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
| -rw-r--r-- | dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |
