diff --git a/change_log.txt b/change_log.txt
index 384f6215..65a3f950 100644
--- a/change_log.txt
+++ b/change_log.txt
@@ -2,6 +2,7 @@
01.07.2015
- optimize compile check handling
- update {foreach} compiler
+ - bugfix debugging console did not display string values containing \n, \r or \t correctly https://github.com/smarty-php/smarty/issues/66
28.06.2015
- move $smarty->enableSecurity() into Smarty_Security class
diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php
index c2a71bd1..d5293133 100644
--- a/libs/Smarty.class.php
+++ b/libs/Smarty.class.php
@@ -111,7 +111,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/**
* smarty version
*/
- const SMARTY_VERSION = '3.1.28-dev/20';
+ const SMARTY_VERSION = '3.1.28-dev/21';
/**
* define variable scopes
diff --git a/libs/debug.tpl b/libs/debug.tpl
index 5b09c5bd..1f77ac62 100644
--- a/libs/debug.tpl
+++ b/libs/debug.tpl
@@ -128,7 +128,7 @@
${$vars@key}
{if isset($vars['nocache'])}Nocache{/if}
- {if isset($vars['scope'])}Origin: {$vars['scope']|debug_print_var:10:80 nofilter}{/if}
+ {if isset($vars['scope'])}Origin: {$vars['scope']|debug_print_var nofilter}{/if}
|
Value{$vars['value']|debug_print_var:10:80 nofilter} |
{if isset($vars['attributes'])}Attributes{$vars['attributes']|debug_print_var nofilter} {/if} |
@@ -141,7 +141,7 @@
{foreach $config_vars as $vars}
#{$vars@key}#
- {if isset($vars['scope'])}Origin: {$vars['scope']|debug_print_var:10:80 nofilter}{/if}
+ {if isset($vars['scope'])}Origin: {$vars['scope']|debug_print_var nofilter}{/if}
|
{$vars['value']|debug_print_var:10:80 nofilter} |
@@ -154,7 +154,7 @@
diff --git a/libs/plugins/modifier.debug_print_var.php b/libs/plugins/modifier.debug_print_var.php
index e3971a04..4ff8213c 100644
--- a/libs/plugins/modifier.debug_print_var.php
+++ b/libs/plugins/modifier.debug_print_var.php
@@ -24,9 +24,9 @@
*/
function smarty_modifier_debug_print_var($var, $max = 10, $length = 40, $depth = 0, $objects = array())
{
- $_replace = array("\n" => '\n',
- "\r" => '\r',
- "\t" => '\t'
+ $_replace = array("\n" => '\n',
+ "\r" => '\r',
+ "\t" => '\t'
);
switch (gettype($var)) {
case 'array' :