From 6eaba3440b6bdebbc96b6752fd46313390874121 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Mon, 30 Jan 2023 19:30:38 +0000 Subject: [PATCH] Revert "URL encode the email" This reverts commit f39098be0da7fc01a3ac25b09a057905e1b0951c. --- rfc6238.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfc6238.php b/rfc6238.php index 78b0e660..a4a7c0e5 100644 --- a/rfc6238.php +++ b/rfc6238.php @@ -61,7 +61,7 @@ public static function getBarCodeUrl($app_name, $email, $secretkey, $issuer) { $url = "http://chart.apis.google.com/chart"; $url = $url."?chs=200x200&chld=M|0&cht=qr&chl=otpauth://totp/"; - $url = $url.$app_name . ": " . rawurlencode($email) . "%3Fsecret%3D" . $secretkey . '%26issuer%3D' . rawurlencode($issuer); + $url = $url.$app_name . ": " . $email . "%3Fsecret%3D" . $secretkey . '%26issuer%3D' . rawurlencode($issuer); return $url; }