Unsubscribe addresses with characters like + in them need to be url-encoded if they...
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 9 Jan 2015 05:21:38 +0000 (05:21 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 9 Jan 2015 05:21:38 +0000 (05:21 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14487 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/listcommands/functions.php

index 55da9db4f662c895ac6a2d8db2e4adb943f57f48..5e71da5c7a1d818f69d217ce303369eed212de09 100644 (file)
@@ -95,7 +95,7 @@ function plugin_listcommands_menu_do() {
             } else {
                 $url = "plugins/listcommands/mailout.php?action=$cmd&amp;";
             }
-            $url .= 'send_to=' . str_replace('?','&amp;', $act);
+            $url .= 'send_to=' . urlencode($act);
 
             $links[$cmd] = makeComposeLink($url, $fieldsdescr[$cmd]);