mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
Replace all setTimeout strings with functions
This fixes a cross-site scripting vulnerability. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
@@ -2315,7 +2315,7 @@ function updateFloatingTitle(unread_only) {
|
||||
function catchupCurrentBatchIfNeeded() {
|
||||
if (catchup_id_batch.length > 0) {
|
||||
window.clearTimeout(catchup_timeout_id);
|
||||
catchup_timeout_id = window.setTimeout('catchupBatchedArticles()', 1000);
|
||||
catchup_timeout_id = window.setTimeout(catchupBatchedArticles, 1000);
|
||||
|
||||
if (catchup_id_batch.length >= 10) {
|
||||
catchupBatchedArticles();
|
||||
|
||||
Reference in New Issue
Block a user