diff options
author | Andrew Dolgov <[email protected]> | 2017-01-22 09:47:20 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-01-22 09:47:20 +0300 |
commit | 7262c1726f1b900d2211d4cfb9054aefb93b991e (patch) | |
tree | 7e9f21a5e61e030352a81711776731d514707bd1 /js/viewfeed.js | |
parent | 0047f2578f126cb6de2eed928e86ed7340c3854d (diff) | |
parent | 88946d331aad96ecbdf9d570853121e5a7eb07ab (diff) |
Merge branch 'settimeout-strings' into 'master'
Replace all setTimeout strings with functions
This fixes a cross-site scripting vulnerability.
See merge request !41
Diffstat (limited to 'js/viewfeed.js')
-rwxr-xr-x | js/viewfeed.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js index feb397157..007728a10 100755 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -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(); |