From dd899e67b9bae16576267d24341b42439107f68b Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 23 Mar 2007 16:31:03 +0000 Subject: [PATCH] * Go safe and use Rhino inspection for getProperty() on HopObjects. --- src/helma/scripting/rhino/RhinoEngine.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/helma/scripting/rhino/RhinoEngine.java b/src/helma/scripting/rhino/RhinoEngine.java index ca074aab..4f2c5171 100644 --- a/src/helma/scripting/rhino/RhinoEngine.java +++ b/src/helma/scripting/rhino/RhinoEngine.java @@ -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 @@ -411,7 +406,7 @@ public class RhinoEngine implements ScriptingEngine { if (prop == null || prop == Undefined.instance - || prop == ScriptableObject.NOT_FOUND) { + || prop == ScriptableObject.NOT_FOUND) { return null; } else if (prop instanceof Wrapper) { return ((Wrapper) prop).unwrap();