aboutsummaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-15 07:08:18 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-15 07:08:18 +0000
commit366e1c3884e97b0d833b8805a6afcd9071ea1e8b (patch)
tree1fc29559cde939018c0d467e032b4a0d0e607ccb /array.c
parenta8f5a06a68f24ac48363083114c14e9c95ea61ff (diff)
downloadruby-366e1c3884e97b0d833b8805a6afcd9071ea1e8b.tar.gz
* array.c (inspect_ary): don't taint the inspected result of a
recursive array. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index 90dcf1c86e..f38e70609f 100644
--- a/array.c
+++ b/array.c
@@ -1743,7 +1743,7 @@ inspect_ary(VALUE ary, VALUE dummy, int recur)
long i;
VALUE s, str;
- if (recur) return rb_tainted_str_new2("[...]");
+ if (recur) return rb_usascii_str_new_cstr("[...]");
str = rb_str_buf_new2("[");
for (i=0; i<RARRAY_LEN(ary); i++) {
s = rb_inspect(RARRAY_PTR(ary)[i]);