diff --git a/CHANGELOG b/CHANGELOG index 1afbe2b299f..803c09ec359 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -57,6 +57,7 @@ CHANGELOG Roundcube Webmail - Managesieve: Unhide advanced rule controls if there are inputs with errors - Managesieve: Display warning message when filter form contains errors - Control search engine crawlers via X-Robots-Tag header instead of and robots.txt (#5098) +- Fix redundant keep-alive/refresh after session error on compose page (#5500) - Fix flickering of header topline in min-mode (#5426) - Fix bug where folders list would scroll to top when clicking on subscription checkbox (#5447) - Fix decoding of GB2312/GBK text when iconv is not installed (#5448) diff --git a/program/js/app.js b/program/js/app.js index 24ae6410ae4..5cbff6e2791 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -8486,6 +8486,12 @@ function rcube_webmail() if (this.env.action == 'compose') { this.save_compose_form_local(); this.compose_skip_unsavedcheck = true; + // stop keep-alive and refresh processes + this.env.session_lifetime = 0; + if (this._keepalive) + clearInterval(this._keepalive); + if (this._refresh) + clearInterval(this._refresh); } else if (redirect_url) { setTimeout(function(){ ref.redirect(redirect_url, true); }, 2000);