projects / phoronix-test-suite.git / commitdiff
Build Results
 
Summary

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Tue 5/5/15 9:21

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Wed 12/31/69 19:00
d70e64d59829038334cb89970ce0e86d85abb9ad  
Merge pull request #65... 
Wed 12/31/69 19:00
cd0b59bf87276c589fd4e65b4caff4b75d5c71e5  
Merge pull request #64... 
Wed 12/31/69 19:00
dc4b713855f46c728c99669169e1a5512472e94d  
Merge pull request #62... 
Fri 4/24/15 10:44
Michael Larabel  
phoromatic: Fix jumping... 
Thu 4/23/15 8:43
Michael Larabel  
phoromatic: Remove... 
Wed 4/22/15 21:06
Michael Larabel  
phoromatic: Disable IP... 
 
> --git a/pts-core/objects/phodevi/components/phodevi_memory.php b/pts-core/objects/phodevi/components/phodevi_memory.php
index 66ab2fa
..a61ce6f 100644
--- a/pts-core/objects/phodevi/components/phodevi_memory.php
+++ b/pts-core/objects/phodevi/components/phodevi_memory.php
@@ -191,12 +191,12 @@ class phodevi_memory extends phodevi_device_interface

                 $product_string 
null;

-                if(!empty(
$mem_manufacturer) && stripos($mem_manufacturer'manufacturer') === false && stripos($mem_manufacturer'module') === false && stripos($mem_manufacturer'dimm') === false && isset($mem_manufacturer[2]) && ctype_alpha($mem_manufacturer))
+                if(!empty(
$mem_manufacturer) && stripos($mem_manufacturer'manufacturer') === false  && stripos($mem_manufacturer'part') === false && stripos($mem_manufacturer'module') === false && stripos($mem_manufacturer'dimm') === false && isset($mem_manufacturer[2]) && ctype_alpha($mem_manufacturer))
                 {
                     
$product_string .= ' ' $mem_manufacturer;
                 }

-                if(!empty(
$mem_part) && stripos($mem_part'part') === false && stripos($mem_part'module') === false && stripos($mem_part'dimm') === false && substr($mem_part02) != '0x' && !isset($mem_part[24]))
+                if(!empty(
$mem_part) && stripos($mem_part'part') === false && stripos($mem_part'module') === false && stripos($mem_part'dimm') === false && substr($mem_part02) != '0x' && !isset($mem_part[24]) && ctype_alnum($mem_part))
                 {
                     
$product_string .= ' ' $mem_part;
                 }
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2015 by Phoronix Media