SHARE
TWEET

PHPSysInfo 3.0.19 SMART parsing fix

a guest Nov 27th, 2012 47 Never
  1. --- class.SMART.inc.php.orig    2012-11-27 12:42:18.000000000 -0600
  2. +++ class.SMART.inc.php 2012-11-27 12:39:42.000000000 -0600
  3. @@ -116,7 +116,7 @@
  4.                 $startIndex = $matches[0][1];
  5.              
  6.              // locate the end string offset for the attributes, this is usually right before string "SMART Error Log Version" (hopefully every output has it!)
  7. -            if ( preg_match('/(SMART Error Log Version)/', $result, $matches, PREG_OFFSET_CAPTURE) )
  8. +            if ( preg_match('/(SMART Error Log (Version|not supported))/', $result, $matches, PREG_OFFSET_CAPTURE) )
  9.                 $endIndex = $matches[0][1];
  10.              
  11.              if (($startIndex)&&($endIndex)&&($endIndex>$startIndex))
RAW Paste Data
Top