1
0
Fork 0

new io.open()'s closure musn't get manipulated either

This commit is contained in:
mfranz 2008-07-22 21:30:47 +00:00
parent 3cfc93927f
commit dc4b8633a3

View file

@ -290,7 +290,7 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
var _closure = globals.closure;
globals.closure = func(fn, level) {
if(fn != self and fn != caller(0)[1])
if(fn != self and fn != caller(0)[1] and fn != io.open)
return _closure(fn, level);
die("closure(): query denied (unauthorized access)");