Преглед изворни кода

Unsubscribe addresses with characters like + in them need to be url-encoded if they are going to be used in a query string. Not sure what the ? to & replacement was doing (was it broken?), but it is possible I broke something by removing it.

pdontthink пре 10 година
родитељ
комит
9f3180940e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      trunk/squirrelmail/plugins/listcommands/functions.php

+ 1 - 1
trunk/squirrelmail/plugins/listcommands/functions.php

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