Skip to content

Commit 07df3ae

Browse files
committed
Fix token error on add hosts #574
(dont push direct to master kids)
1 parent 7e6e4f5 commit 07df3ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classes/Tools/Hosts/AddHosts.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function add($userId, array $hostsDetails)
6161
$hostName,
6262
$hostsDetail["trustPassword"], // Might end with whitepsace
6363
$socketPath,
64-
trim($hostsDetail["token"]) // b64 shouldn't have whitespace
64+
$hostsDetail["token"] !== null ? trim($hostsDetail["token"]) : null // b64 shouldn't have whitespace
6565
);
6666

6767
$alias = null;

0 commit comments

Comments
 (0)