[macruby-changes] [MacRuby/MacRuby] 2099c4: String#scan will copy status of taint/untrust.

noreply at github.com noreply at github.com
Sun Apr 24 05:46:45 PDT 2011


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

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

Changed paths:
  R spec/frozen/tags/macruby/core/string/scan_tags.txt
  M string.c

Log Message:
-----------
String#scan will copy status of taint/untrust.

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

str = "hello"
str.taint
str.untrust

a = "hello hello hello".scan(str)
a.each { |m|
  assert_equal(true, m.tainted?)
  assert_equal(true, m.untrusted?)
}

puts :ok
}}}




More information about the macruby-changes mailing list