Skip to content

Commit

Permalink
Trim whitespace of username
Browse files Browse the repository at this point in the history
  • Loading branch information
kenda committed Dec 25, 2023
1 parent 29de15f commit a157b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Services/ApiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function sendRequest(string $path, string $description) {
}

if ($this->server['type'] == 'myopenhab') {
curl_setopt($ch, CURLOPT_USERPWD, $this->server['username'] . ':' . $this->server['password']);
curl_setopt($ch, CURLOPT_USERPWD, trim($this->server['username']) . ':' . $this->server['password']);
}

$this->logger->debug($description . " - request send", curl_getinfo($ch));
Expand Down

0 comments on commit a157b8c

Please sign in to comment.