Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-03-25 02:24:49 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-03-25 02:24:49 +0400
commit09031def185c572b0b9e88ba93d841a0a8d11e0c (patch)
treeb8b8f9b5ab4cce99c0cbd1ae8220959de5fa111b
parentdbe8a799d7e7fc8417b13ac8838f963d6187a5dc (diff)
refs #4780 preserve line breaks
-rw-r--r--core/Common.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/core/Common.php b/core/Common.php
index ec31f88280..57349802e9 100644
--- a/core/Common.php
+++ b/core/Common.php
@@ -1068,12 +1068,16 @@ class Common
Log::getInstance()->setLogLevel(Log::DEBUG);
- if (is_array($info)) {
+ if (is_array($info) || is_object($info)) {
$info = Common::sanitizeInputValues($info);
$out = var_export($info, true);
- Log::debug($out);
+ foreach (explode("\n", $out) as $line) {
+ Log::debug($line);
+ }
} else {
- Log::debug(htmlspecialchars($info, ENT_QUOTES));
+ foreach (explode("\n", $info) as $line) {
+ Log::debug(htmlspecialchars($line, ENT_QUOTES));
+ }
}
}
}