Closed
Description
Hi.
Library version up to 3.1.0 incorrectly parses array and object url parameters:
from bleach import DEFAULT_CALLBACKS, Linker
text= 'http://test.com?array[]=1¶ms_in[]=2'
linker = Linker(url_re=linkifier.URL_RE, callbacks=DEFAULT_CALLBACKS, skip_tags=None, parse_email=False)
print(linker.linkify(text))
# prints: <a href="http://test.com?array" rel="nofollow">http://test.com?array</a>[]=1¶ms_in[]=2
As you see, url is split by [], loosing part of the link.