Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ public Variable(Ref parent, Ref refKey, boolean limited) {

@Override
public Object getValue(PageContext pc) throws PageException {
if (limited) throw new SecurityInterpreterException("invalid syntax, variables are not supported.");
if (limited) throw new SecurityInterpreterException("Dynamic evaluation blocked: variable expansion is not permitted in this context.");
return pc.get(parent.getCollection(pc), KeyImpl.init(getKeyAsString(pc)));
}

@Override
public Object touchValue(PageContext pc) throws PageException {
if (limited) throw new SecurityInterpreterException("invalid syntax, variables are not supported.");
if (limited) throw new SecurityInterpreterException("Dynamic evaluation blocked: variable expansion is not permitted in this context.");
Object p = parent.touchValue(pc);
if (p instanceof Query) {
Object o = ((Query) p).getColumn(KeyImpl.init(getKeyAsString(pc)), null);
Expand All @@ -80,7 +80,7 @@ public Object touchValue(PageContext pc) throws PageException {

@Override
public Object getCollection(PageContext pc) throws PageException {
if (limited) throw new SecurityInterpreterException("invalid syntax, variables are not supported.");
if (limited) throw new SecurityInterpreterException("Dynamic evaluation blocked: variable expansion is not permitted in this context.");
Object p = parent.getValue(pc);
if (p instanceof Query) {
return ((Query) p).getColumn(KeyImpl.init(getKeyAsString(pc)));
Expand All @@ -90,7 +90,7 @@ public Object getCollection(PageContext pc) throws PageException {

@Override
public Object setValue(PageContext pc, Object obj) throws PageException {
if (limited) throw new SecurityInterpreterException("invalid syntax, variables are not supported.");
if (limited) throw new SecurityInterpreterException("Dynamic evaluation blocked: variable expansion is not permitted in this context.");
return pc.set(parent.touchValue(pc), KeyImpl.init(getKeyAsString(pc)), obj);
}

Expand Down
Loading