Explorar o código

bugfix:
- fixed length of mac searh field

Dmitriev Roman %!s(int64=4) %!d(string=hai) anos
pai
achega
6d4415d721
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      html/inc/common.php

+ 1 - 1
html/inc/common.php

@@ -2544,7 +2544,7 @@ function set_port_for_group($db, $group_id, $place_id, $state)
 function get_vendor($db,$mac)
 {
     $mac = mac_dotted($mac);
-    $vendor = get_record_sql($db,'SELECT companyName,companyAddress FROM mac_vendors WHERE oui="'.substr($mac,0,6).'" or oui="'.substr($mac,0,8).'"');
+    $vendor = get_record_sql($db,'SELECT companyName,companyAddress FROM mac_vendors WHERE oui="'.substr($mac,0,8).'" or oui="'.substr($mac,0,10).'"');
     $result='';
     if (!empty($vendor)) {
 	$result = $vendor['companyName'];