diff --git a/src/OTP.php b/src/OTP.php index 49e1730..9c6aca3 100644 --- a/src/OTP.php +++ b/src/OTP.php @@ -98,7 +98,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)); + $params = str_replace(['+', '%7E'], ['%20', '~'], http_build_query($options, arg_separator: '&')); return sprintf( 'otpauth://%s/%s?%s',