r9701 - helma-ng/trunk/modules/helma

[email protected] Mon, 4 May 2009 13:52:22 +0200 (CEST)
Newsgroups gmane.comp.java.helma.cvs
Message-ID <20090504115222.6AA7E3D0D6@mia>
Author: hannes
Date: 2009-05-04 13:52:22 +0200 (Mon, 04 May 2009)
New Revision: 9701

Modified:
   helma-ng/trunk/modules/helma/buffer.js
Log:
Make sure arguments to Buffer.write() are converted to Strings.

Details at http://dev.helma.org/trac/helma/changeset/9701

Modified: helma-ng/trunk/modules/helma/buffer.js
===================================================================
--- helma-ng/trunk/modules/helma/buffer.js	2009-05-04 11:52:20 UTC (rev 9700)
+++ helma-ng/trunk/modules/helma/buffer.js	2009-05-04 11:52:22 UTC (rev 9701)
@@ -16,7 +16,7 @@
 
     this.write = function() {
         for (var i = 0; i < arguments.length; i++) {
-            content[content.length] = arguments[i];
+            content[content.length] = String(arguments[i]);
         }
         return this;
     };