From 6a443adf08b3913358db6d14c18a44281bc67e3d Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 3 May 2020 11:37:40 +0200 Subject: [PATCH] Fix poll issue --- src/Services/Mastodon_api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/Mastodon_api.php b/src/Services/Mastodon_api.php index da4dd20..c9551ee 100644 --- a/src/Services/Mastodon_api.php +++ b/src/Services/Mastodon_api.php @@ -220,7 +220,7 @@ class Mastodon_api if (isset($parameters['body']['poll']['options'])) { $url .= strpos($url, '?') !== false ? '' : '?'; foreach ($parameters['body']['poll']['options'] as $key => $value) { - $url .= 'poll[options][]=' . $value . '&'; + $url .= 'poll[options][]=' . urlencode($value) . '&'; } $url = substr($url, 0, -1);