From 5b862803c6556f780628c3e15b94419aed6a5b5d Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 24 May 2002 14:30:04 +0000 Subject: [PATCH] Pass a clone of the parameter map to macros, so if the macro modifyes the object we still have the original version. --- src/helma/framework/core/Skin.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/helma/framework/core/Skin.java b/src/helma/framework/core/Skin.java index bcf75554..fe9ec1b1 100644 --- a/src/helma/framework/core/Skin.java +++ b/src/helma/framework/core/Skin.java @@ -258,7 +258,9 @@ public class Skin { Object handlerObject = null; Object[] arguments = new Object[1]; - arguments[0] = parameters; + // pass a clone of the parameter map so if the script changes it, + // we still keep the original version. + arguments[0] = parameters.clone (); // flag to tell whether we found our invocation target object boolean objectFound = true;