Skip to content
Extraits de code Groupes Projets
Valider 09031def rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

refs #4780 preserve line breaks

parent dbe8a799
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -1068,12 +1068,16 @@ class Common ...@@ -1068,12 +1068,16 @@ class Common
Log::getInstance()->setLogLevel(Log::DEBUG); Log::getInstance()->setLogLevel(Log::DEBUG);
if (is_array($info)) { if (is_array($info) || is_object($info)) {
$info = Common::sanitizeInputValues($info); $info = Common::sanitizeInputValues($info);
$out = var_export($info, true); $out = var_export($info, true);
Log::debug($out); foreach (explode("\n", $out) as $line) {
Log::debug($line);
}
} else { } else {
Log::debug(htmlspecialchars($info, ENT_QUOTES)); foreach (explode("\n", $info) as $line) {
Log::debug(htmlspecialchars($line, ENT_QUOTES));
}
} }
} }
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter