From c2c9dc03742db9117b24cc0a1c414bee32fe84da Mon Sep 17 00:00:00 2001 From: Creeperman007 Date: Mon, 30 Mar 2020 18:17:30 +0200 Subject: [PATCH] Special characters support Fixed bug with URL reserved characters --- SEContestChatCommands.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SEContestChatCommands.php b/SEContestChatCommands.php index 408b04e..b70bc11 100644 --- a/SEContestChatCommands.php +++ b/SEContestChatCommands.php @@ -31,8 +31,8 @@ $duration = 15; } - $name = str_replace("_", " ", trim($_GET["name"])); - $optionsRaw = preg_split('/ /', trim($_GET["options"])); + $name = str_replace("_", " ", trim(urldecode($_GET["name"]))); + $optionsRaw = preg_split('/ /', trim(urldecode($_GET["options"]))); $options = array(); foreach($optionsRaw as $key => $value) {