From: kink Date: Thu, 21 Nov 2002 11:13:12 +0000 (+0000) Subject: Strip unwanted parts of the spamcop auth code in case someone enters X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=dcf59aa6e5f2a01d13c019c7c85aa456a0e09fca;hp=89465360c61675e2fa88b719f9178f11d7476eef 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 --- 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;