Fix #971 - PREVENT_EXTERNAL_LOGIN broken when using IPv6 Addr

This fixes http://trac.i-mscp.net/ticket/971 by removing [] from referrer url as well. While it worked for me to just drop the [] removal process entirely from both steps, I kept it in case that would cause a regression outside of my testing (Chrome and Ubuntu Precise)