mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 02:45:56 +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:
@@ -668,7 +668,7 @@ function hotkey_prefix_timeout() {
|
||||
Element.hide('cmdline');
|
||||
}
|
||||
|
||||
setTimeout("hotkey_prefix_timeout()", 1000);
|
||||
setTimeout(hotkey_prefix_timeout, 1000);
|
||||
|
||||
} catch (e) {
|
||||
exception_error("hotkey_prefix_timeout", e);
|
||||
@@ -1325,7 +1325,7 @@ function unsubscribeFeed(feed_id, title) {
|
||||
updateFeedList();
|
||||
} else {
|
||||
if (feed_id == getActiveFeedId())
|
||||
setTimeout("viewfeed({feed:-5})", 100);
|
||||
setTimeout(function() { viewfeed({feed:-5}) }, 100);
|
||||
|
||||
if (feed_id < 0) updateFeedList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user