diff options
author | Simon Rettberg | 2019-03-20 11:32:33 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-20 11:32:33 +0100 |
commit | 0b45f178e889d2549fab07f5261eff8e975954e9 (patch) | |
tree | 1d7eb6ae45c4c6e371e8e8048d5a43f7cbedf5b9 /modules-available/serversetup-bwlp-ipxe/api.inc.php | |
parent | [serversetup-bwlp-ipxe] Fix editing menuchain entries, tweak script (diff) | |
download | slx-admin-0b45f178e889d2549fab07f5261eff8e975954e9.tar.gz slx-admin-0b45f178e889d2549fab07f5261eff8e975954e9.tar.xz slx-admin-0b45f178e889d2549fab07f5261eff8e975954e9.zip |
[serversetup-bwlp-ipxe] Filter a few more bogus model names
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe/api.inc.php')
-rw-r--r-- | modules-available/serversetup-bwlp-ipxe/api.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/api.inc.php b/modules-available/serversetup-bwlp-ipxe/api.inc.php index ec5fc577..fa7cf523 100644 --- a/modules-available/serversetup-bwlp-ipxe/api.inc.php +++ b/modules-available/serversetup-bwlp-ipxe/api.inc.php @@ -92,7 +92,7 @@ if ($model === false) { // Otherwise use what iPXE sent us function modfilt($str) { - if (empty($str) || preg_match('/product\s+name|be\s+filled|unknown|default\s+string/i', $str)) + if (empty($str) || preg_match('/product\s+name|be\s+filled|unknown|default\s+string|system\s+model|manufacturer/i', $str)) return false; return trim(preg_replace('/\s+/', ' ', $str)); } |