Explorar o código

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 %!s(int64=10) %!d(string=hai) anos
pai
achega
17941b51d0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/listcommands/functions.php

+ 1 - 1
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]);