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

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Wed 7/23/14 10:50

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Wed 7/23/14 10:50
Michael Larabel  
pts_webui: SERVER_ADDR... 
Fri 7/18/14 8:58
Michael Larabel  
pts-core: Sanitize... 
Fri 7/11/14 8:58
Michael Larabel  
Phoronix Test Suite 5.2.1... 
Sun 7/6/14 16:07
Michael Larabel  
phodevi: Add DDE / Deepin... 
Wed 6/25/14 10:04
Michael Larabel  
pts-core: Rework... 
Wed 6/25/14 9:25
Michael Larabel  
pts-core: Don't check... 
 
> --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 © 2014 by Phoronix Media