Mercurial Hosting > luan
comparison src/luan/modules/IoLuan.java @ 1133:ba4daf107e07
fix security bug
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 17 Jan 2018 20:59:42 -0700 |
parents | 34dfed3b5cb0 |
children | e54ae41e9501 |
comparison
equal
deleted
inserted
replaced
1132:b70102bab110 | 1133:ba4daf107e07 |
---|---|
951 } | 951 } |
952 | 952 |
953 private static String SECURITY_KEY = "Io.Security"; | 953 private static String SECURITY_KEY = "Io.Security"; |
954 | 954 |
955 private static void check(LuanState luan,String name) throws LuanException { | 955 private static void check(LuanState luan,String name) throws LuanException { |
956 if( luan.javaOk.ok ) | |
957 return; | |
956 Security s = (Security)luan.registry().get(SECURITY_KEY); | 958 Security s = (Security)luan.registry().get(SECURITY_KEY); |
957 if( s!=null ) | 959 if( s!=null ) |
958 s.check(luan,name); | 960 s.check(luan,name); |
959 } | 961 } |
960 | 962 |