| File daemon.php changed (mode: 100644) (index 0e6d5bd..623ace7) |
| ... |
... |
function makeReport($rawOutput) |
| 187 |
187 |
$re = '/^(.*)(error|warning|Error|Warning|ERROR|WARNING|ERROR SUMMARY)(:\s+)(.*)$/'; |
$re = '/^(.*)(error|warning|Error|Warning|ERROR|WARNING|ERROR SUMMARY)(:\s+)(.*)$/'; |
| 188 |
188 |
preg_match($re, $line, $matches); |
preg_match($re, $line, $matches); |
| 189 |
189 |
if (sizeof($matches) == 0 || $matches[4] == '0') { |
if (sizeof($matches) == 0 || $matches[4] == '0') { |
| 190 |
|
array_push($output, $line); |
|
|
190 |
|
array_push($output, htmlentities($line)); |
| 191 |
191 |
continue; |
continue; |
| 192 |
192 |
} |
} |
| 193 |
193 |
|
|
| |
| ... |
... |
function makeReport($rawOutput) |
| 202 |
202 |
$style = 'warning'; |
$style = 'warning'; |
| 203 |
203 |
} |
} |
| 204 |
204 |
|
|
| 205 |
|
$line = "$matches[1]" |
|
| 206 |
|
. "<span class='$style-title'>$matches[2]</span>" |
|
| 207 |
|
. "$matches[3]" |
|
| 208 |
|
. "<span class='$style-msg'>$matches[4]</span>"; |
|
|
205 |
|
$line = htmlentities($matches[1]) |
|
206 |
|
. "<span class='$style-title'>".htmlentities($matches[2])."</span>" |
|
207 |
|
. htmlentities($matches[3]) |
|
208 |
|
. "<span class='$style-msg'>".htmlentities($matches[4])."</span>"; |
| 209 |
209 |
|
|
| 210 |
210 |
array_push($output, $anchor . $line); |
array_push($output, $anchor . $line); |
| 211 |
211 |
|
|