From d2b94eba09ffe30f5d2dddf07c22351ba87eb39e Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 1 Dec 2016 11:56:07 -0500 Subject: [PATCH] (js) Fix detection of session expiration --- NEWS | 3 ++- UI/WebServerResources/js/Common/Common.app.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 4fd13122d..6c49adb82 100644 --- a/NEWS +++ b/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) diff --git a/UI/WebServerResources/js/Common/Common.app.js b/UI/WebServerResources/js/Common/Common.app.js index 1e83bd2ab..ab2302a5e 100644 --- a/UI/WebServerResources/js/Common/Common.app.js +++ b/UI/WebServerResources/js/Common/Common.app.js @@ -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) && - /^/.test(response.data)) { + /^[\n\r ]*/.test(response.data)) { $window.location.reload(true); return $q.reject(); }