$to = parseAddrs($t);
$cc = parseAddrs($c);
$bcc = parseAddrs($b);
- $body = stripslashes($body);
$from_addr = "$username@$domain";
$reply_to = getPref($data_dir, $username, "reply_to");
$from = getPref($data_dir, $username, "full_name");
$tmp = nl2br(htmlspecialchars(fgets($smtpConnection, 1024)));
errorCheck($tmp);
- $subject = stripslashes($subject);
fputs($smtpConnection, "Subject: $subject\n"); // Subject
fputs($smtpConnection, "From: $from\n"); // Subject
fputs($smtpConnection, "To: $to_list\n"); // Who it's TO
if ($reply_to != "")
fputs($smtpConnection, "Reply-To: $reply_to\n");
- $body = stripslashes($body);
fputs($smtpConnection, "$body\n"); // send the body of the message
fputs($smtpConnection, ".\n"); // end the DATA part
exit;
}
+ $passed_body = stripslashes($passed_body);
+ $passed_to = stripslashes($passed_to);
+ $passed_cc = stripslashes($passed_cc);
+ $passed_bcc = stripslashes($passed_bcc);
+ $passed_subject = stripslashes($passed_subject);
+
sendMessage($smtpServerAddress, $smtpPort, $username, $domain, $passed_to, $passed_cc, $passed_bcc, $passed_subject, $passed_body, $version);
if ($auto_forward == true)
setPref($data_dir, $username, "editor_size", $editorsize);
setPref($data_dir, $username, "use_signature", $usesignature);
- setSig($data_dir, $username, $signature_edit);
+ setSig($data_dir, $username, stripslashes($signature_edit));
echo "<FONT FACE=\"Arial,Helvetica\">";
echo "<BR><BR><BR><CENTER><B>Options Saved!</B><BR><BR>";