From 9f76730204d964a8448535e95f978fcbb93544b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 8 Feb 2012 21:03:01 +0000 Subject: [PATCH] - match "error:" and "errors:" for less FP --- index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 7de6fb8..8a688a2 100644 --- a/index.php +++ b/index.php @@ -355,7 +355,7 @@ function dump_log($tail) } $s = htmlspecialchars($s); // highlight errors - if (strstr($s, "error")) { + if (preg_match("/errors?:/i", $s)) { $s = "$s"; } echo $s; @@ -441,7 +441,7 @@ function list_archs() "alt=\""._("Powered by PLD Linux")."\" border=\"0\" />
\n" . "(c) 2002 ". "PLD Team
\n". - '$Revision: 1.14 $'. + '$Revision: 1.15 $'. "
\n"; # smile ;) @@ -814,7 +814,7 @@ function welcome() . ;)

-

Version: $Id: index.php,v 1.14 2010/05/24 07:09:49 adamg Exp $

+

Version: $Id: index.php,v 1.15 2012/02/08 13:25:08 glen Exp $