Hi,
one of our apps breaks after updating to helma 1.6.2. A StackOverflow
comes when the app calls stripTags():
/**
* Overwrites Helma's stripTags-method, since we dont
* want to convert everything to a String.
*/
if (!this["__stripTags__"]) this["__stripTags__"] = this["stripTags"];
function stripTags(obj) {
if (isNull(obj) || isUndefined(obj) || isDate(obj) || isBoolean(obj)) {
return obj;
} else if (isArray(obj)) {
return obj.collect(function(item) { return stripTags(item); });
} else {
return Packages.org.mortbay.util.StringUtil.replace(__stripTags__(obj
+ ""), '<', '<');
}
}
stripTags() calls itself endless as soon as it comes into the else
case. I understand this (I think) , BUT this code exists and runs
perfectly for over one year. I don't understand
why it worked in earlier helma version (1.6.0 i.e.)
I really curious about your feedback about this.
thanks for you time,
--
klemens mantzos
web developer | vienna -
http://knallgrau.at/_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev