Skip to content

Commit

Permalink
Use stripos for checking arm
Browse files Browse the repository at this point in the history
  • Loading branch information
mastacontrola committed Nov 18, 2024
1 parent 2fac87d commit 423a55d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/lib/fog/bootmenu.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function __construct()
);
}

if (isset($_REQUEST['arch']) && stripos($_REQUEST['arch'], 'arm64') !== false) {
if (isset($_REQUEST['arch']) && stripos($_REQUEST['arch'], 'arm') !== false) {
//use arm boot loaders instead
$refind = 'chain -ar ${boot-url}/service/ipxe/refind_aa64.efi';
}
Expand Down Expand Up @@ -296,7 +296,7 @@ public function __construct()
if (($_REQUEST['arch'] ?? '') == 'i386') {
$bzImage = $bzImage32;
$imagefile = $init_32;
} elseif (($_REQUEST['arch'] ?? '') == 'arm64') {
} elseif (false !== stripos(($_REQUEST['arch'] ?? ''), 'arm')) {
$bzImage = $bzImageArm;
$imagefile = $init_arm;
}
Expand Down

0 comments on commit 423a55d

Please sign in to comment.