Created
October 31, 2014 09:38
-
-
Save r00takaspin/707b34a6fd1e2a9a0e56 to your computer and use it in GitHub Desktop.
$SAFE in action
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "unsafe" | |
$SAFE = 0 | |
eval ("#{gets()}") | |
puts "safe" | |
$SAFE = 1 | |
eval ("#{gets()}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment