mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-24 13:01:28 +00:00
add some protection against opener attacks if external site is opened via window.open()
This commit is contained in:
@@ -1729,7 +1729,10 @@ function hlClicked(event, id) {
|
||||
|
||||
function openArticleInNewWindow(id) {
|
||||
toggleUnread(id, 0, false);
|
||||
window.open("backend.php?op=article&method=redirect&id=" + id);
|
||||
|
||||
var w = window.open("");
|
||||
w.opener = null;
|
||||
w.location = "backend.php?op=article&method=redirect&id=" + id;
|
||||
}
|
||||
|
||||
function isCdmMode() {
|
||||
|
||||
Reference in New Issue
Block a user