From dcf59aa6e5f2a01d13c019c7c85aa456a0e09fca Mon Sep 17 00:00:00 2001 From: kink Date: Thu, 21 Nov 2002 11:13:12 +0000 Subject: [PATCH] Strip unwanted parts of the spamcop auth code in case someone enters them accidentally. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4191 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/spamcop/options.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/spamcop/options.php b/plugins/spamcop/options.php index 18f1a0a4..5850261d 100755 --- a/plugins/spamcop/options.php +++ b/plugins/spamcop/options.php @@ -43,6 +43,9 @@ switch ($action) { break; case 'save_id': if (isset($ID)) { + $ID = trim($ID); + $ID = preg_replace('/@.*/','',$ID); + $ID = preg_replace('/.*\./','',$ID); setPref($data_dir, $username, 'spamcop_id', $ID); } break; -- 2.25.1