String#% with %s and %p handles tainted status of ar
----------------------------------------------------

                 Key: JRUBY-1742
                 URL: http://jira.codehaus.org/browse/JRUBY-1742
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.x
         Environment: Latest JRuby 1.1b1 from trunk.
            Reporter: Vladimir Sizikov
         Attachments: string-modulo-taint.patch

Consider the following example:

{noformat}
str = "string".taint
def str.inspect() "string".taint end

puts ("%s" % str).tainted?
puts ("%p" % str).tainted?
{noformat}

MRI 1.8.6 and MRI 1.9 return:
true
true

JRuby returns:
false
false

This also leads to two rubinius spec failures.

The proposed patch fixes the problem and both rubinius failures.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to