Special URL characters aren't escaped correctly when using Mocking Spongebob service
What happens
Using special chars may produce unexpected results when using the Mocking Spongebob command.
For example, !msb #hello world
calls https://mockingspongebob.org/#hello%20world
. Due to the special function of #
, the main page is returned instead of a picture.
If the #
isn't at the beginning, an image will be returned but the text after the #
(inclusive) will be cut.
One or multiple /
at the beginning will be ignored.
A &
at the beginning will cause a timeout.
What should happen
The connection should return an image containing the text #hello world
(case insensitive).
How to reproduce
Run !msb #hello world
and inspect the "image" which was returned.
Proposed solution
Replace #
, '&' and /
and with their encoded representation.