From 186f2a27e04f5815f7adb4edf1a4f5a0cef6dd56 Mon Sep 17 00:00:00 2001 From: Adam Taylor Date: Tue, 10 Sep 2013 19:52:18 -0600 Subject: [PATCH] Make the "pr" function use `printf` instead of `echo sprintf` --- lib/Cake/basics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/basics.php b/lib/Cake/basics.php index 04c1a19c1..a5bf97003 100644 --- a/lib/Cake/basics.php +++ b/lib/Cake/basics.php @@ -245,7 +245,7 @@ if (!function_exists('pr')) { function pr($var) { if (Configure::read('debug') > 0) { $template = php_sapi_name() !== 'cli' ? '
%s
' : "\n%s\n"; - echo sprintf($template, print_r($var, true)); + printf($template, print_r($var, true)); } }