Skip to content
Snippets Groups Projects
Commit 8ee85cd6 authored by Peter Rotich's avatar Peter Rotich
Browse files

Remove unnecessary stripslashes (legacy code)

parent 8fc62eb4
No related branches found
No related tags found
No related merge requests found
......@@ -92,9 +92,9 @@ class Mailer {
require_once (PEAR_DIR.'Mail/mime.php'); // PEAR Mail_Mime packge
//do some cleanup
$to=preg_replace("/(\r\n|\r|\n)/s",'', trim($to));
$subject=stripslashes(preg_replace("/(\r\n|\r|\n)/s",'', trim($subject)));
$body = stripslashes(preg_replace("/(\r\n|\r)/s", "\n", trim($message)));
$to = preg_replace("/(\r\n|\r|\n)/s",'', trim($to));
$subject = preg_replace("/(\r\n|\r|\n)/s",'', trim($subject));
$body = preg_replace("/(\r\n|\r)/s", "\n", trim($message));
/* Message ID - generated for each outgoing email */
$messageId = sprintf('<%s%d-%s>', Misc::randCode(6), time(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment