URL encode the email

This commit is contained in:
Marcus Hill 2023-01-30 19:18:37 +00:00
parent 61e100c98b
commit f39098be0d
1 changed files with 1 additions and 1 deletions

View File

@ -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 . ": " . $email . "%3Fsecret%3D" . $secretkey . '%26issuer%3D' . rawurlencode($issuer);
$url = $url.$app_name . ": " . rawurlencode($email) . "%3Fsecret%3D" . $secretkey . '%26issuer%3D' . rawurlencode($issuer);
return $url;
}