From 2b5fddf5724189d6d00d455e79e2b90e02f2458a Mon Sep 17 00:00:00 2001 From: tokul Date: Wed, 15 Oct 2003 16:26:14 +0000 Subject: [PATCH] fixing plugin. original function failed to get message body. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5940 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/spamcop/spamcop.php | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/plugins/spamcop/spamcop.php b/plugins/spamcop/spamcop.php index 9dc4062a..e9345690 100644 --- a/plugins/spamcop/spamcop.php +++ b/plugins/spamcop/spamcop.php @@ -163,28 +163,23 @@ echo "

"; 50000) { + if (strlen($spam_message) == 50000) { $Warning = "\n[truncated by SpamCop]\n"; - $Message = substr($Message, 0, 50000 - strlen($Warning)) . $Warning; + $spam_message = substr($spam_message, 0, 50000 - strlen($Warning)) . $Warning; } if (isset($js_web) && $js_web) { -?>
- +
-- 2.25.1