Strip unwanted parts of the spamcop auth code in case someone enters
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 21 Nov 2002 11:13:12 +0000 (11:13 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 21 Nov 2002 11:13:12 +0000 (11:13 +0000)
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

index 18f1a0a4dbc7c37010ba3ed64327408a07e01050..5850261d826b44a5e3e1b4f8460c0e38393a5d2e 100755 (executable)
@@ -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;