Skip to content

Commit

Permalink
Fix issue with adding a host via socket and not token
Browse files Browse the repository at this point in the history
  • Loading branch information
turtle0x1 committed Sep 28, 2024
1 parent 88edfad commit af175f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/Tools/Hosts/AddHosts.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function add($userId, array $hostsDetails)
$hostName,
$hostsDetail["trustPassword"], // Might end with whitepsace
$socketPath,
$hostsDetail["token"] !== null ? trim($hostsDetail["token"]) : null // b64 shouldn't have whitespace
!empty($hostsDetail["token"]) ? trim($hostsDetail["token"]) : null // b64 shouldn't have whitespace
);

$alias = null;
Expand Down

0 comments on commit af175f3

Please sign in to comment.