Revision: 7203 http://sourceforge.net/p/ipcop/svn/7203 Author: owes Date: 2014-01-08 06:04:23 +0000 (Wed, 08 Jan 2014) Log Message: ----------- Newer mdadm adds a trailing space in State line. Adjust regex to match.
Modified Paths: -------------- ipcop/trunk/html/cgi-bin/status.cgi Modified: ipcop/trunk/html/cgi-bin/status.cgi =================================================================== --- ipcop/trunk/html/cgi-bin/status.cgi 2014-01-07 17:41:45 UTC (rev 7202) +++ ipcop/trunk/html/cgi-bin/status.cgi 2014-01-08 06:04:23 UTC (rev 7203) @@ -19,7 +19,7 @@ # (c) The SmoothWall Team # # Many changes since 2001 -# (c) 2001-2012, the IPCop team +# (c) 2001-2014, the IPCop team # # $Id$ # @@ -335,7 +335,7 @@ open(MDADM, "/usr/local/bin/sysinfo --raid=md$i |"); while(<MDADM>) { - if ($_ =~ m/^\s+State\s+:\s+(.*)\s*$/) { + if ($_ =~ m/^\s+State\s+:\s+(.*?)\s*$/) { my $field = &Header::cleanhtml($1,"y"); $rowtext .= "<td>$field</td>"; $state = "class='ipcop_error'" if (($field ne 'clean') && ($field ne 'active')); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Ipcop-svn mailing list Ipcop-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipcop-svn