From dc42234e4f5c2c64cba311758910a9e62413f69d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Fri, 10 Jan 2014 19:36:28 +0100 Subject: [PATCH] fixed add_favorite for logins with special characters --- application/plugins/WidgetPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/plugins/WidgetPlugin.php b/application/plugins/WidgetPlugin.php index b64fa3e3..8507520b 100644 --- a/application/plugins/WidgetPlugin.php +++ b/application/plugins/WidgetPlugin.php @@ -359,7 +359,7 @@ class WidgetPlugin implements CallbackListener, Plugin { $quad->setPosition($width / 2 - 4, -1.5, -0.5); $quad->setSize(3, 3); $quad->setHAlign(Control::CENTER); - $quad->setManialink('mcontrol?favorite&' . $this->maniaControl->server->login); + $quad->setManialink('mcontrol?favorite=' . urlencode($this->maniaControl->server->login)); // Send manialink $manialinkText = $maniaLink->render()->saveXML();