Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Encode vendor url
Browse files Browse the repository at this point in the history
  • Loading branch information
cretueusebiu authored Jun 30, 2016
1 parent f245746 commit e5bd639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TwoFactorAuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function enableTwoFactor(Request $request)
*/
protected function getQrUrl($email, $secret)
{
$company = isset(Spark::$details['vendor']) ? Spark::$details['vendor'] : url()->to('/');
$company = isset(Spark::$details['vendor']) ? urlencode(Spark::$details['vendor']) : url()->to('/');

return str_replace('200x200', '260x260', (new Google2FA)->getQRCodeGoogleUrl($company, $email, $secret));
}
Expand Down

0 comments on commit e5bd639

Please sign in to comment.