Bug with debug and array-key with newline

From: Date: Mon, 21 Apr 2003 15:40:05 +0000
Subject: Bug with debug and array-key with newline
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1246@lists.php.net to get a copy of this message
Consider this $vars = array(); $vars["this"] = that; $vars["\ntest"] = "hello"; $smarty->assign('varlist', $vars); Once the debug popup is written, it will produce a javascript error such as: Error: unterminated string literal Line: 300, Column: 34 Source Code: _smarty_console.document.write("<tr bgcolor=#fafafa><td valign=top><tt><font color=blue>{$varlist</font></tt></td><td nowrap><tt><font color=green><b>Array (31)</b><br>\r<b> PS. No I don't have \n in my array-keys, I found this bug because of a bug in my code -- Tom Sommer, Denmark www.tsn.dk - www.dreamcoder.dk

« previous php.smarty.dev (#1246) next »