So if you have a handful of commands you're willing to eval, you could regex verify them. But trying to build a stop-list of things not to eval is fraught with terror, as Ovid demonstrates above.
In reply to Re: Re: Is there such a thing as safe eval?
by Your Mother
in thread Is there such a thing as safe eval?
by rzward
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |