Advertisement
Guest User

PHPSysInfo 3.0.19 SMART parsing fix

a guest
Nov 27th, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.71 KB | None | 0 0
  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))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement