use a new code inspector for safer eval
svn: r2319
This commit is contained in:
parent
a813ae8434
commit
c34a75443e
|
@ -166,7 +166,8 @@
|
|||
(define null-input (open-input-string ""))
|
||||
(define (safe-eval expr . more)
|
||||
(parameterize ([current-security-guard tight-security]
|
||||
[current-input-port null-input])
|
||||
[current-input-port null-input]
|
||||
[current-code-inspector (make-inspector)])
|
||||
(apply eval expr more)))
|
||||
|
||||
;; Execution ----------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user