FSN#37542 window.open() -> FcltMgr.windowopen to prevent tabnabbing

svn path=/Website/trunk/; revision=34629
This commit is contained in:
2017-07-14 15:08:05 +00:00
parent 03bb95b8df
commit 238f7e5266
2 changed files with 14 additions and 1 deletions

View File

@@ -1252,6 +1252,19 @@ var FcltMgr =
}
});
},
windowopen: function(url, params)
{
params = params || {};
var wnd = window.open();
wnd.opener = null;
wnd.location = url;
try {
wnd.focus;
}
catch(e) {
// alert(e); ?
}
},
confirm: function (tekst, params, fncallback)
{
if (typeof params == "function")

View File

@@ -572,7 +572,7 @@ function __rsProcessResultset(processParams) // processParams wordt blind aan al
<% }
else
{ %>
window.open("<%=Request.ServerVariables("SCRIPT_NAME")%>?outputmode=" + poutputmode + "&autosortby=" + escape(autosortby) + "<%=safe.jsstring(transitQS())%>");
FcltMgr.windowopen("<%=Request.ServerVariables("SCRIPT_NAME")%>?outputmode=" + poutputmode + "&autosortby=" + escape(autosortby) + "<%=safe.jsstring(transitQS())%>");
<% } %>
}