Sanitize value of SOGoMailAutoSave

This commit is contained in:
Francis Lachapelle
2019-09-25 10:36:31 -04:00
parent 5c3bff74a0
commit 2fbe721c60
3 changed files with 12 additions and 4 deletions

View File

@@ -384,7 +384,7 @@ function initAddresses() {
}
function initAutoSaveTimer() {
var autoSave = UserDefaults["SOGoMailAutoSave"];
var autoSave = parseInt(UserDefaults["SOGoMailAutoSave"]) || 5;
if (autoSave) {
var interval;