From b3202f3f91125ef32759963ef89bdd8056a34389 Mon Sep 17 00:00:00 2001 From: Brady McDonough Date: Thu, 15 Feb 2024 17:48:10 -0700 Subject: [PATCH] Enable symbols in user fields --- src/URI/Otpauth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/URI/Otpauth.php b/src/URI/Otpauth.php index cd951b9..268b4a2 100644 --- a/src/URI/Otpauth.php +++ b/src/URI/Otpauth.php @@ -118,7 +118,7 @@ class Otpauth public function emitStr(): string { $encodeIssuer = \rawurlencode($this->issuer); - $label = $encodeIssuer . ":" . $this->userid; + $label = $encodeIssuer . ":" . \rawurlencode($this->userid); $issuer = "issuer=" . $encodeIssuer; $algo = "algorithm=" . $this->algorithm; $digits = "digits=" . $this->digits;