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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to