Skip to content

Commit 7ee509d

Browse files
committed
urlencode company name; closes pterodactyl#1690
1 parent e95a532 commit 7ee509d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Services/Users/TwoFactorSetupService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function handle(User $user): string
7171
'totp_secret' => $this->encrypter->encrypt($secret),
7272
]);
7373

74-
$company = preg_replace('/\s/', '', $this->config->get('app.name'));
74+
$company = urlencode(preg_replace('/\s/', '', $this->config->get('app.name')));
7575

7676
return sprintf(
7777
'otpauth://totp/%1$s:%2$s?secret=%3$s&issuer=%1$s',

0 commit comments

Comments
 (0)