mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-11 01:41:22 +00:00
(js) Fix detection of session expiration
This commit is contained in:
3
NEWS
3
NEWS
@@ -1,4 +1,4 @@
|
||||
3.2.4 (2016-12-DD)
|
||||
3.2.4 (2016-12-01)
|
||||
------------------
|
||||
|
||||
New features
|
||||
@@ -12,6 +12,7 @@ Bug fixes
|
||||
- [web] fixed JavaScript exception when SOGo is launched from an external link (#3900)
|
||||
- [web] restored fetching of freebusy information of MS Exchange contacts
|
||||
- [web] fixed mail attribute when importing an LDIF file (#3878)
|
||||
- [web] fixed detection of session expiration
|
||||
- [eas] properly escape all GAL responses (#3923)
|
||||
|
||||
3.2.3 (2016-11-25)
|
||||
|
||||
@@ -243,7 +243,7 @@
|
||||
response: function(response) {
|
||||
// When expecting JSON but receiving HTML, assume session has expired and reload page
|
||||
if (response && /^application\/json/.test(response.config.headers.Accept) &&
|
||||
/^<!DOCTYPE html>/.test(response.data)) {
|
||||
/^[\n\r ]*<!DOCTYPE html>/.test(response.data)) {
|
||||
$window.location.reload(true);
|
||||
return $q.reject();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user