Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi,
I am seeing HTML in the log entry in watchdog when a user is notified of a comment. More precisely,
TYPE comment_notify
...
MESSAGE Notified: <a href="/user/1/edit">aitala@psu.edu</a>
...
This also shows up in the Message column in the Recent Log Messages page.
Its not a major issue, but its kind of annoying...
Eric
Comment | File | Size | Author |
---|---|---|---|
#1 | 2053941-1-mail_nohtml.patch | 510 bytes | kscheirer |
Comments
Comment #1
kscheirerYeah, that's kind of annoying. Does this work?
Comment #2
cybermache CreditAttribution: cybermache commentedShould the previous line be wrapped in t() instead
? @@523,529
// Make the mail link to user's /edit, unless it's an anonymous user.
if ($alert->uid != 0) {
- $user_mail = l($mail, 'user/' . $alert->uid . '/edit');
+ $user_mail = t(l($mail, 'user/' . $alert->uid . '/edit'));
}
else {
$user_mail = check_plain($mail);
}
otherwise anonymous email doesn't get the check_plain?
UPDATE: didn't change a thing. Did this instead so anonymous users still go through the check_plain.
- $user_mail = l($mail, 'user/' . $alert->uid . '/edit');
+ $user_mail = $mail;