mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-28 11:28:38 +00:00
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:
parent
7a76f300c2
commit
f90256d447
@ -623,7 +623,7 @@ function getSpecialDirectory(name)
|
||||
|
||||
function getPathFromURL (url)
|
||||
{
|
||||
var ary = url.match(/^(.*\/)([^\/?#]+)(\?|#|$)/);
|
||||
var ary = url.match(/^(.*\/)([^\/?#]*)(\?|#|$)/);
|
||||
if (ary)
|
||||
return ary[1];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user