X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Flistcommands%2Ffunctions.php;h=4f0c40542f4b3adc1f31a07b302e526a1ec35b0f;hp=8ca0bf51998e7d6f4d834de007fc7a6ad52f0ec0;hb=6d9f22dba5d50ff55b8d6811412feedd3e534acf;hpb=4b5049de2fa934c45599d6e4c74bf2bbee10d34d diff --git a/plugins/listcommands/functions.php b/plugins/listcommands/functions.php index 8ca0bf51..4f0c4054 100644 --- a/plugins/listcommands/functions.php +++ b/plugins/listcommands/functions.php @@ -8,7 +8,7 @@ * this plugin displays a menu which gives the user a choice of mailinglist * commands such as (un)subscribe, help and list archives. * - * @copyright © 1999-2007 The SquirrelMail Project Team + * @copyright 1999-2010 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -42,7 +42,6 @@ function get_non_rfc_lists() { */ function plugin_listcommands_optpage_register_block_do() { - global $optpage_blocks, $listcommands_allow_non_rfc_list_management; // only allow management of non-RFC lists if admin deems necessary @@ -64,7 +63,7 @@ function plugin_listcommands_optpage_register_block_do() * internal function that builds mailing list links */ function plugin_listcommands_menu_do() { - global $passed_id, $passed_ent_id, $color, $mailbox, $message, + global $passed_id, $passed_ent_id, $mailbox, $message, $startMessage, $oTemplate, $listcommands_allow_non_rfc_list_management; @include_once(SM_PATH . 'plugins/listcommands/config.php'); @@ -130,7 +129,7 @@ function plugin_listcommands_menu_do() { if (!in_array('post', array_keys($links))) { foreach ($non_rfc_lists as $non_rfc_list) { - if (preg_match('/(^|,|\s)' . preg_quote($non_rfc_list) . '($|,|\s)/', $recipients)) { + if (preg_match('/(^|,|<|\s)' . preg_quote($non_rfc_list) . '($|,|>|\s)/', $recipients)) { $url = 'src/compose.php?' . (isset($startMessage)?'startMessage='.$startMessage.'&':'') . 'send_to=' . str_replace('?','&', $non_rfc_list);