Hive13 / jIRCBot

The Hive13 Chat Bot

Home Page:http://wiki.hive13.org/Hive13_IRC_Bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parentheses symbols following a URL are mishandled

cjdavis opened this issue · comments

If a ( or ) follows a URL, the bot appends it to the url sent to bit.ly, causing it to encode the wrong url.

Trailing parenthesis can be valid parts of a URL, so I think this is an issue that can not be resolved without breaking other correct implementations.

For example: http://en.wikipedia.org/wiki/Point_(album)

A workaround would be to put a space after any URL before closing a parenthesis.

Agreed - you would need to parse for opening and closing parens before the url (an excessive amount of work for a minimal benefit)