fixed add_favorite for logins with special characters

This commit is contained in:
Steffen Schröder 2014-01-10 19:36:28 +01:00
parent 5db1e23a7b
commit dc42234e4f

View File

@ -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();