Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 5fda63b

Browse files
author
Jamie Snape
committed
Escape variables in googleauth module
1 parent adfe74a commit 5fda63b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/googleauth/Notification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function googleAuthLink()
6464
$userNs->oauthToken = $csrfToken;
6565
session_write_close();
6666

67-
return '<div style="margin-top: 10px; display: inline-block;">Or '.'<a class="googleauth-login" style="text-decoration: underline;" href="'.$href.'">'.'Login with your Google account</a></div><script type="text/javascript"'.' src="'.$fc->getBaseUrl(
67+
return '<div style="margin-top: 10px; display: inline-block;">Or '.'<a class="googleauth-login" style="text-decoration: underline;" href="'.htmlspecialchars($href, ENT_QUOTES, 'UTF-8').'">'.'Login with your Google account</a></div><script type="text/javascript"'.' src="'.$fc->getBaseUrl(
6868
).'/modules/'.$this->moduleName.'/public/js/login/googleauth.login.js"></script>';
6969
}
7070

0 commit comments

Comments
 (0)