[macruby-changes] [MacRuby/MacRuby] 61f1e4: String#[]= will copy status of taint/untrust that ...

noreply at github.com noreply at github.com
Sun Apr 24 02:52:33 PDT 2011


Branch: refs/heads/master
Home:   https://github.com/MacRuby/MacRuby

Commit: 61f1e4626ac8d21b009b81d0b7a68824d7c75fdc
    https://github.com/MacRuby/MacRuby/commit/61f1e4626ac8d21b009b81d0b7a68824d7c75fdc
Author: Watson <watson1978 at gmail.com>
Date:   2011-04-24 (Sun, 24 Apr 2011)

Changed paths:
  M string.c

Log Message:
-----------
String#[]= will copy status of taint/untrust that was passed string.

Test Script:
{{{
require 'test/unit/assertions.rb'
include Test::Unit::Assertions

str = "hello"
str.taint
str.untrust

s = "foobar"
s[1] = str
assert_equal(true, s.tainted?)
assert_equal(true, s.untrusted?)
assert_equal(String, s.class)

puts :ok
}}}




More information about the macruby-changes mailing list