buildlogs: index.php - match "error:" and "errors:" for less FP

glen glen at pld-linux.org
Wed Feb 8 22:03:06 CET 2012


Author: glen                         Date: Wed Feb  8 21:03:06 2012 GMT
Module: buildlogs                     Tag: HEAD
---- Log message:
- match "error:" and "errors:" for less FP

---- Files affected:
buildlogs:
   index.php (1.15 -> 1.16) 

---- Diffs:

================================================================
Index: buildlogs/index.php
diff -u buildlogs/index.php:1.15 buildlogs/index.php:1.16
--- buildlogs/index.php:1.15	Wed Feb  8 14:25:08 2012
+++ buildlogs/index.php	Wed Feb  8 22:03:01 2012
@@ -355,7 +355,7 @@
 		}
 		$s = htmlspecialchars($s);
 		// highlight errors
-		if (strstr($s, "error")) {
+		if (preg_match("/errors?:/i", $s)) {
 			$s = "<span class=error>$s</span>";
 		}
 		echo $s;
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/buildlogs/index.php?r1=1.15&r2=1.16&f=u



More information about the pld-cvs-commit mailing list