Added additional check on pathname for XssRays Issue 657

This commit is contained in:
antisnatchor
2012-04-20 11:40:28 +01:00
parent f697e92c95
commit f8cd395e21

View File

@@ -189,7 +189,7 @@ beef.net.xssrays = {
target.search = target.search.slice(1);
target.search = target.search.split(/&|&/);
if(beef.browser.isIE()){ //the damn IE doesn't contain the forward slash in pathname
if(beef.browser.isIE() && target.pathname.charAt(0) != "/"){ //the damn IE doesn't contain the forward slash in pathname
var pathname = "/" + target.pathname;
}else{
var pathname = target.pathname;