From 14fbb7c844cdf84a1de2cd8ef48f88dc6b309956 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 7 Jun 2007 14:27:11 +0000 Subject: [PATCH] show all errors --- lam/templates/tests/lamdaemonTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lam/templates/tests/lamdaemonTest.php b/lam/templates/tests/lamdaemonTest.php index 3fb2d844..0ac4c988 100644 --- a/lam/templates/tests/lamdaemonTest.php +++ b/lam/templates/tests/lamdaemonTest.php @@ -87,7 +87,10 @@ function lamTestLamdaemon($command, $stopTest, $handle, $testText) { } $errOut = @fread($stderr, 100000); if ((strpos(strtolower($errOut), "sudoers") !== false) || (strpos(strtolower($errOut), "sorry") !== false)) { - $return[] = "ERROR," . _("Sudo is not setup correctly!") . "," . str_replace(",", " ", $errOut); + $return[] = "ERROR," . _("Sudo is not setup correctly!") . "," . htmlspecialchars(str_replace(",", " ", $errOut)); + } + elseif (strlen($errOut) > 0) { + $return[] = "ERROR," . _("Unknown error") . "," . htmlspecialchars(str_replace(",", " ", $errOut)); } if ((sizeof($return) == 1) && (strpos(strtolower($return[0]), "error") === false)) { $lamdaemonOk = true;