From a6875cabc8e22ca573f175b5a0fe1704618db112 Mon Sep 17 00:00:00 2001 From: beu Date: Fri, 10 Jan 2025 15:44:37 +0100 Subject: [PATCH] trim command before explode --- core/Maps/MapCommands.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Maps/MapCommands.php b/core/Maps/MapCommands.php index e52eb830..88fcf9a0 100644 --- a/core/Maps/MapCommands.php +++ b/core/Maps/MapCommands.php @@ -214,7 +214,7 @@ class MapCommands implements CommandListener, ManialinkPageAnswerListener, Callb return; } - $params = explode(' ', $chatCallback[1][2], 2); + $params = explode(' ', trim($chatCallback[1][2]), 2); if (count($params) < 2) { $message = $this->maniaControl->getChat()->formatMessage( 'Usage example: %s',