Force the device_key_vendor to lower case so the key vendor can be case insenstive.

This commit is contained in:
markjcrane
2015-10-02 23:39:12 -06:00
parent d56eeab729
commit f69728befc

View File

@@ -465,7 +465,7 @@ include "root.php";
$sql .= "or device_profile_uuid = '".$device_profile_uuid."' ";
}
$sql .= ") ";
$sql .= "AND (device_key_vendor = '".$device_vendor."' or device_key_vendor is null) ";
$sql .= "AND (lower(device_key_vendor) = '".$device_vendor."' or device_key_vendor is null) ";
$sql .= "ORDER BY device_key_category asc, device_key_id asc, device_uuid desc";
$prep_statement = $this->db->prepare(check_sql($sql));
$prep_statement->execute();