Fixes #396 Link detection

Fixes problem with URLs and bbcode indroduced with #396.

Internal thread: http://community.mybb.com/thread-153373.html