diff options
author | Thomas B. <thomas@roundcube.net> | 2012-10-31 02:16:35 -0700 |
---|---|---|
committer | Thomas B. <thomas@roundcube.net> | 2012-10-31 02:16:35 -0700 |
commit | a2c586093e1b27ca14c2fb60a1c7f535444695d3 (patch) | |
tree | 634ad94166d5e95ffd252b6df968778a815c6b46 /program/js | |
parent | 752eedd9647468aa40028f5e73b80adb88957b34 (diff) | |
parent | d2d00c510be0974fe2ec2b8d926cb00b25686083 (diff) |
Merge pull request #41 from linagora/release-0.8
Grancefully handle SSO redirects on Ajax requests
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/app.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js index 17f423eff..1211d4a29 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -6141,6 +6141,11 @@ function rcube_webmail() else if (request.status == 0 && status != 'abort') this.display_message(this.get_label('servererror') + ' (No connection)', 'error'); + // redirect to url specified in location header if not empty + var location_url = request.getResponseHeader("Location"); + if (location_url != '') + this.redirect(location_url); + // re-send keep-alive requests after 30 seconds if (action == 'keep-alive') setTimeout(function(){ ref.keep_alive(); ref.start_keepalive(); }, 30000); |