Permalink
Browse files

Strip tags from emailed text versions of postings

  • Loading branch information...
martin
martin committed Mar 26, 2002
1 parent f7d58d7 commit c9e5eb1a2e38ad55401e4801bc101e91ec97bae1
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/moodlelib.php
View
@@ -859,8 +859,8 @@ function email_to_user($user, $from, $subject, $message) {
include_once("$CFG->libdir/class.smtp.php");
include_once("$CFG->libdir/class.phpmailer.php");
- $subject = stripslashes($subject);
- $message = stripslashes($message);
+ $subject = strip_tags(stripslashes($subject));
+ $message = strip_tags(stripslashes($message));
$mail = new phpmailer;
@@ -896,8 +896,8 @@ function email_to_users(&$users, $from, $subject, $message, $link, $footer="") {
return false;
}
- $subject = stripslashes($subject);
- $message = stripslashes($message);
+ $subject = strip_tags(stripslashes($subject));
+ $message = strip_tags(stripslashes($message));
$mail = new phpmailer;

0 comments on commit c9e5eb1

Please sign in to comment.