Skip to content

Commit

Permalink
Merge pull request #217 from Spomky-Labs/temp-451ef8
Browse files Browse the repository at this point in the history
Temp 451ef8
  • Loading branch information
Spomky authored Apr 15, 2024
2 parents 37243ac + b737d1c commit b4a0835
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/tweet.yml

This file was deleted.

2 changes: 1 addition & 1 deletion src/OTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ protected function generateURI(string $type, array $options): string
$this->hasColon($label) === false || throw new InvalidArgumentException('Label must not contain a colon.');
$options = [...$options, ...$this->getParameters()];
$this->filterOptions($options);
$params = str_replace(['+', '%7E'], ['%20', '~'], http_build_query($options, arg_separator: '&'));
$params = str_replace(['+', '%7E'], ['%20', '~'], http_build_query($options, '', '&'));

return sprintf(
'otpauth://%s/%s?%s',
Expand Down

0 comments on commit b4a0835

Please sign in to comment.