Merge pull request #11762 from nextcloud/stable13-11756-ignore-session-lifetime-if-it-can-not-be-converted-to-a-number
[stable13] Ignore "session_lifetime" if it can not be converted to a number
This commit is contained in:
commit
329c2108b5
|
@ -1356,10 +1356,12 @@ function initCore() {
|
|||
// max interval in seconds set to 24 hours
|
||||
var maxInterval = 24 * 3600;
|
||||
// interval in seconds
|
||||
var interval = 900;
|
||||
var interval = NaN;
|
||||
if (oc_config.session_lifetime) {
|
||||
interval = Math.floor(oc_config.session_lifetime / 2);
|
||||
}
|
||||
interval = isNaN(interval)? 900: interval;
|
||||
|
||||
// minimum one minute
|
||||
if (interval < 60) {
|
||||
interval = 60;
|
||||
|
|
Loading…
Reference in New Issue