Mercurial Hosting > luan
diff src/luan/modules/PackageLuan.java @ 1330:f41919741100
fix security
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 11 Feb 2019 01:38:55 -0700 |
parents | 2c8d1d76a82a |
children | 25746915a241 |
line wrap: on
line diff
--- a/src/luan/modules/PackageLuan.java Sun Feb 10 02:01:49 2019 -0700 +++ b/src/luan/modules/PackageLuan.java Mon Feb 11 01:38:55 2019 -0700 @@ -93,10 +93,14 @@ } catch(LuanException e) { throw new RuntimeException(e); } + Luan.Security security = Luan.setSecurity(luan,null); try { return (String)Luan.first(boot.call("read",uri)); } catch(LuanException e) { return null; + } finally { + if( security != null ) + Luan.setSecurity(luan,security); } }