[macruby-changes] [4453] MacRuby/trunk/hash.c

source_changes at macosforge.org source_changes at macosforge.org
Mon Aug 23 18:18:11 PDT 2010


Revision: 4453
          http://trac.macosforge.org/projects/ruby/changeset/4453
Author:   lsansonetti at apple.com
Date:     2010-08-23 18:18:11 -0700 (Mon, 23 Aug 2010)
Log Message:
-----------
Hash#to_a: transfer untrusted status to the new array

Modified Paths:
--------------
    MacRuby/trunk/hash.c

Modified: MacRuby/trunk/hash.c
===================================================================
--- MacRuby/trunk/hash.c	2010-08-24 01:13:08 UTC (rev 4452)
+++ MacRuby/trunk/hash.c	2010-08-24 01:18:11 UTC (rev 4453)
@@ -1115,6 +1115,9 @@
     if (OBJ_TAINTED(hash)) {
 	OBJ_TAINT(ary);
     }
+    if (OBJ_UNTRUSTED(hash)) {
+	OBJ_UNTRUST(ary);
+    }
     return ary;
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100823/00b90ce2/attachment.html>


More information about the macruby-changes mailing list