Bug 210222 - Make getURL smarter and not drop the leading # if the next character is "unsafe".

r=rginda@hacksrus.com


git-svn-id: svn://10.0.0.236/trunk@153792 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
silver%warwickcompsoc.co.uk 2004-03-10 00:26:01 +00:00
parent 82c306699d
commit a23d90839d

View File

@ -1965,7 +1965,7 @@ CIRCChannel.prototype.getURL =
function chan_geturl ()
{
var target;
if (this.normalizedName[0] == "#")
if (this.normalizedName.match(/^#[^!+&]/))
target = ecmaEscape(this.normalizedName.substr(1));
else
target = ecmaEscape(this.normalizedName);