Bug 432818 - Moving a tab for a channel called "#" triggers problems

r=silver@warwickcompsoc.co.uk (James Ross)
ChatZilla Only. a=NPOTB.


git-svn-id: svn://10.0.0.236/trunk@251532 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gijskruitbosch%gmail.com 2008-05-11 21:27:11 +00:00
parent 7cdc77c410
commit 4aeabe387a

View File

@ -2801,7 +2801,7 @@ function chan_geturl()
var target = this.encodedName;
var flags = this.mode.key ? ["needkey"] : [];
if ((target[0] == "#") &&
if ((target[0] == "#") && (target.length > 1) &&
arrayIndexOf(this.parent.channelTypes, target[1]) == -1)
{
/* First character is "#" (which we're allowed to omit), and the