* Go safe and use Rhino inspection for getProperty() on HopObjects.

This commit is contained in:
hns 2007-03-23 16:31:03 +00:00
parent b233ad0d4d
commit dd899e67b9

View file

@ -396,11 +396,6 @@ public class RhinoEngine implements ScriptingEngine {
// Do not return functions as properties as this
// is a potential security problem
return (prop instanceof Function) ? null : prop;
} else if (obj instanceof INode) {
IProperty prop = ((INode) obj).get(propname);
if (prop == null) return null;
Object value = prop.getValue();
return (value instanceof Function) ? null : value;
}
// use Rhino wrappers and methods to get property