use an empty input port for all evaluations
svn: r1547
This commit is contained in:
parent
f41e7a8352
commit
88a6f81a50
|
@ -163,8 +163,10 @@
|
||||||
(error what "file access denied (~a)" path)))
|
(error what "file access denied (~a)" path)))
|
||||||
(lambda (what host port mode) (error what "network access denied"))))
|
(lambda (what host port mode) (error what "network access denied"))))
|
||||||
|
|
||||||
|
(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])
|
||||||
(apply eval expr more)))
|
(apply eval expr more)))
|
||||||
|
|
||||||
;; Execution ----------------------------------------
|
;; Execution ----------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user