Skip to content

Instantly share code, notes, and snippets.

@r00takaspin
Created October 31, 2014 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r00takaspin/707b34a6fd1e2a9a0e56 to your computer and use it in GitHub Desktop.
Save r00takaspin/707b34a6fd1e2a9a0e56 to your computer and use it in GitHub Desktop.
$SAFE in action
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