1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 14:05:56 +00:00

require CSRF token for Article/redirect

This commit is contained in:
Andrew Dolgov
2020-09-15 15:35:50 +03:00
parent 7e50c6c4b5
commit e670ac2ee5
2 changed files with 4 additions and 2 deletions

View File

@@ -133,9 +133,11 @@ const Article = {
openInNewWindow: function (id) {
const w = window.open("");
/* global __csrf_token */
if (w) {
w.opener = null;
w.location = "backend.php?op=article&method=redirect&id=" + id;
w.location = "backend.php?op=article&method=redirect&id=" + id + "&csrf_token=" + __csrf_token;
Headlines.toggleUnread(id, 0);
}