mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-59012 auth_oauth2: Do not escape URL in plain text emails
This commit is contained in:
parent
590292d48e
commit
97cc7e0969
@ -192,10 +192,10 @@ class api {
|
||||
];
|
||||
$confirmationurl = new moodle_url('/auth/oauth2/confirm-linkedlogin.php', $params);
|
||||
|
||||
// Remove data parameter just in case it was included in the confirmation so we can add it manually later.
|
||||
$data->link = $confirmationurl->out();
|
||||
$data->link = $confirmationurl->out(false);
|
||||
$message = get_string('confirmlinkedloginemail', 'auth_oauth2', $data);
|
||||
|
||||
$message = get_string('confirmlinkedloginemail', 'auth_oauth2', $data);
|
||||
$data->link = $confirmationurl->out();
|
||||
$messagehtml = text_to_html(get_string('confirmlinkedloginemail', 'auth_oauth2', $data), false, false, true);
|
||||
|
||||
$user->mailformat = 1; // Always send HTML version as well.
|
||||
@ -303,9 +303,10 @@ class api {
|
||||
];
|
||||
$confirmationurl = new moodle_url('/auth/oauth2/confirm-account.php', $params);
|
||||
|
||||
$data->link = $confirmationurl->out();
|
||||
$data->link = $confirmationurl->out(false);
|
||||
$message = get_string('confirmaccountemail', 'auth_oauth2', $data);
|
||||
|
||||
$message = get_string('confirmaccountemail', 'auth_oauth2', $data);
|
||||
$data->link = $confirmationurl->out();
|
||||
$messagehtml = text_to_html(get_string('confirmaccountemail', 'auth_oauth2', $data), false, false, true);
|
||||
|
||||
$user->mailformat = 1; // Always send HTML version as well.
|
||||
|
Loading…
x
Reference in New Issue
Block a user