From dc4b8633a364d91a148a53aa10bf94b3b6354636 Mon Sep 17 00:00:00 2001 From: mfranz Date: Tue, 22 Jul 2008 21:30:47 +0000 Subject: [PATCH] new io.open()'s closure musn't get manipulated either --- Nasal/io.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nasal/io.nas b/Nasal/io.nas index 14857b4bf..0e2cc6586 100644 --- a/Nasal/io.nas +++ b/Nasal/io.nas @@ -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)");