Skip to content

Commit 242148b

Browse files
authored
Session Warning: Prevent timeout overflow for large session ages (#12547)
1 parent 4731d08 commit 242148b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dojo/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ <h4 class="modal-title" id="sessionModalLabel">Session Expiring Soon</h4>
11201120

11211121
setTimeout(() => {
11221122
$('#sessionTimeoutModal').modal('show');
1123-
}, timeout * 1000);
1123+
}, Math.min(timeout, 2147483) * 1000); // Do not allow a buffer overflow here
11241124

11251125
}
11261126
session_notifcation();

0 commit comments

Comments
 (0)