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

r=rginda@hacksrus.com
This commit is contained in:
silver%warwickcompsoc.co.uk 2004-03-10 00:26:01 +00:00
Родитель 81a5c1d082
Коммит d320b189ca
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);