Author Topic: [1.7 beta 2] HTML tags in email subjects  (Read 3229 times)

brg

  • Freshman
  • *
  • Posts: 22
    • View Profile
[1.7 beta 2] HTML tags in email subjects
« on: April 22, 2010, 07:37:22 am »
In application/models/notifier/Notifier.class.php file in 125 row:
Code: [Select]
"subject" => $subject = lang("$notification notification $type", $name, $uid, $typename, $ws),
but before:
Code: [Select]
$css = get_workspace_css_properties($w->getColor());
$ws .= "<span style=\"$css\">" . $w->getPath() . "</span>";
After this in "$ws" we have html tags, it is ok for "$properties['workspace'] = $ws;", but not for subjects!

Simple solution:
Code: [Select]
"subject" => $subject = lang("$notification notification $type", $name, $uid, $typename, html_to_text($ws)),

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: [1.7 beta 2] HTML tags in email subjects
« Reply #1 on: April 28, 2010, 08:51:35 am »
Thanks. Fixed for next version.