Skip to content

Commit

Permalink
fix(provider): trim '/' in host option
Browse files Browse the repository at this point in the history
  • Loading branch information
021-projects committed Mar 2, 2024
1 parent 9ecac92 commit 50ea2d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/addons/BS/BtcPayProvider/Payment/BTCPayServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ public function verifyConfig(array &$options, &$errors = [])
$storeId = $options['store_id'] ?? '';
$secret = $options['secret'] ?? '';

$host = $options['host'] = rtrim($host, '/');

if (! $host) {
$errors[] = \XF::phrase('btcpayprovider_host_required');
}
Expand Down

0 comments on commit 50ea2d0

Please sign in to comment.