From 7ee509d8c205801c8197c7102901e3cb4d53c98e Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Thu, 2 Jul 2020 21:14:53 -0700 Subject: [PATCH] urlencode company name; closes #1690 --- app/Services/Users/TwoFactorSetupService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Users/TwoFactorSetupService.php b/app/Services/Users/TwoFactorSetupService.php index 032a43083..5dcb7879c 100644 --- a/app/Services/Users/TwoFactorSetupService.php +++ b/app/Services/Users/TwoFactorSetupService.php @@ -71,7 +71,7 @@ class TwoFactorSetupService 'totp_secret' => $this->encrypter->encrypt($secret), ]); - $company = preg_replace('/\s/', '', $this->config->get('app.name')); + $company = urlencode(preg_replace('/\s/', '', $this->config->get('app.name'))); return sprintf( 'otpauth://totp/%1$s:%2$s?secret=%3$s&issuer=%1$s',