How safe is $SAFE=4?


(Philip Mak) #1

How safe is $SAFE=4? I read the description of $SAFE in “Programming
Ruby: The Pragmatic Programmer’s Guide” and it sounds like $SAFE is
specifically designed for running code from untrusted sources.

So, if I put a form on a website that executes whatever code people
put into it with $SAFE=4, would this be safe? (Is there a good webpage
that talks about the use of $SAFE further?)


(Yukihiro Matsumoto) #2

Hi,

···

In message “How safe is $SAFE=4?” on 02/06/05, Philip Mak pmak@animeglobe.com writes:

So, if I put a form on a website that executes whatever code people
put into it with $SAFE=4, would this be safe?

It’s designed to be. It’s safe unless I made mistake.

						matz.