We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e6e4f5 commit 07df3aeCopy full SHA for 07df3ae
src/classes/Tools/Hosts/AddHosts.php
@@ -61,7 +61,7 @@ public function add($userId, array $hostsDetails)
61
$hostName,
62
$hostsDetail["trustPassword"], // Might end with whitepsace
63
$socketPath,
64
- trim($hostsDetail["token"]) // b64 shouldn't have whitespace
+ $hostsDetail["token"] !== null ? trim($hostsDetail["token"]) : null // b64 shouldn't have whitespace
65
);
66
67
$alias = null;
0 commit comments