Huh - I tweaked the above to check expr.tainted? and it is
true when it’s
evaled – according to http://www.rubycentral.com/book/taint.html at
$SAFE >> = 1, tainted strings cannot be evaled. Why does
this script
work, eval-ing 1+1?
Try it with $SAFE = 3
#eval is safe at level 4
Ahhhhhhhh… I’ve been assuming the SAFE levels were cumulative. Thx for the
clarification.