[MacRuby/MacRuby] 61f1e4: String#[]= will copy status of taint/untrust that ...
24 Apr
2011
24 Apr
'11
9:52 a.m.
Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: 61f1e4626ac8d21b009b81d0b7a68824d7c75fdc https://github.com/MacRuby/MacRuby/commit/61f1e4626ac8d21b009b81d0b7a68824d7... Author: Watson <watson1978@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 }}}
5312
Age (days ago)
5312
Last active (days ago)
0 comments
1 participants
participants (1)
-
noreply@github.com