I am using create_function to run some user-code at server end. I am looking for any of these two:
- Is there a way to sanitize the code passed to it to prevent something harmful from executing?
- Alternately, is there a way to specify this code to be run in a sandboxed environment so that the user can't play around with anything else.
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…