From: lkehresman Date: Sat, 8 Jan 2000 20:33:35 +0000 (+0000) Subject: Fixed some slash problems X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=102cbc7b1d033dd4697184d901cb89eb50ca1800 Fixed some slash problems git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@142 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/smtp.php b/functions/smtp.php index f75ea3e8..05f16f3c 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -22,7 +22,6 @@ $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"); @@ -76,7 +75,6 @@ $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 @@ -90,7 +88,6 @@ 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 diff --git a/src/compose_send.php b/src/compose_send.php index 6bc1c75f..d9cb37c5 100644 --- a/src/compose_send.php +++ b/src/compose_send.php @@ -45,6 +45,12 @@ 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) diff --git a/src/options_submit.php b/src/options_submit.php index ff32aff6..3c210e62 100644 --- a/src/options_submit.php +++ b/src/options_submit.php @@ -21,7 +21,7 @@ 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 ""; echo "


Options Saved!

";