BUGFIX Strip out any "~" characters that may stop the staging link from working in IE6/IE7

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70049 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-01-13 02:42:45 +00:00 committed by Sam Minnee
parent aeeb7bbc7b
commit 51881ac87a

View File

@ -448,6 +448,6 @@ window.name = windowName('cms');
* Return a unique window name that contains the URL
*/
function windowName(suffix) {
var base = document.getElementsByTagName('base')[0].href.replace('http://','').replace(/\//g,'_').replace(/\./g,'_');
var base = document.getElementsByTagName('base')[0].href.replace('~','').replace('http://','').replace(/\//g,'_').replace(/\./g,'_');
return base + suffix;
}