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 null-input (open-input-string ""))
|
||||||
(define (safe-eval expr . more)
|
(define (safe-eval expr . more)
|
||||||
(parameterize ([current-security-guard tight-security]
|
(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)))
|
(apply eval expr more)))
|
||||||
|
|
||||||
;; Execution ----------------------------------------
|
;; Execution ----------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user