putting a macro into the sandbox with allowMacro() did the opposite of what it should

This commit is contained in:
hns 2001-09-08 15:22:15 +00:00
parent 50d49d0484
commit a7d1e5d368

View file

@ -239,7 +239,7 @@ public class Skin {
*/ */
public void render (RequestEvaluator reval, ESObject thisObject, IPathElement elem, ESObject paramObject) throws RedirectException { public void render (RequestEvaluator reval, ESObject thisObject, IPathElement elem, ESObject paramObject) throws RedirectException {
if (sandbox != null && sandbox.contains (getFullName ())) { if (sandbox != null && !sandbox.contains (getFullName ())) {
String h = handler == null ? "global" : handler; String h = handler == null ? "global" : handler;
reval.res.write ("[Macro "+getFullName()+" not allowed in sandbox]"); reval.res.write ("[Macro "+getFullName()+" not allowed in sandbox]");
return; return;