Bug 349066 - Venkman's Open Windows view misconstructs base URL for urls like http://foo.com/#bar

r=silver (James Ross)
Venkman/SeaMonkey Only
This commit is contained in:
gijskruitbosch%gmail.com 2006-08-20 15:24:04 +00:00
parent 7a76f300c2
commit f90256d447

View File

@ -623,7 +623,7 @@ function getSpecialDirectory(name)
function getPathFromURL (url)
{
var ary = url.match(/^(.*\/)([^\/?#]+)(\?|#|$)/);
var ary = url.match(/^(.*\/)([^\/?#]*)(\?|#|$)/);
if (ary)
return ary[1];