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