* Go safe and use Rhino inspection for getProperty() on HopObjects.
This commit is contained in:
parent
b233ad0d4d
commit
dd899e67b9
1 changed files with 1 additions and 6 deletions
|
@ -396,11 +396,6 @@ public class RhinoEngine implements ScriptingEngine {
|
||||||
// Do not return functions as properties as this
|
// Do not return functions as properties as this
|
||||||
// is a potential security problem
|
// is a potential security problem
|
||||||
return (prop instanceof Function) ? null : prop;
|
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
|
// use Rhino wrappers and methods to get property
|
||||||
|
|
Loading…
Add table
Reference in a new issue