Forum: Ruby on Rails dup/clone and taintedness

Posted by John Merlino (johnmerlino)
on 2012-10-08 03:55
(Received via mailing list)
I was reading this:

"these methods allocate a new instance of the class of the object on
which they are invoked. They then copy all the instance variables and
the taintedness of the receiver object to the newly allocated object."

What does it mean "taintedness"?

thanks for response
Posted by Rob Biedenharn (Guest)
on 2012-10-08 20:40
(Received via mailing list)
Taintedness refers to a default lack of trust in a value that was 
obtained from an unknown source. (Typically user input of some kind.)

http://www.ruby-doc.org/docs/ProgrammingRuby/html/taint.html

http://en.wikipedia.org/wiki/Taint_checking

-Rob
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.