Fixes #110 Link detection
Better solution for #78, #79 and http://dev.mybb.com/issues/996
Merge pull request #396 from Stefan-ST/fix-110

Fixes #110 Link detection
Better solution for #78, #79 and http://dev.mybb.com/issues/996