mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 10:53:39 +01:00
fix to match non-numeric timeout; provided by A.Stoeckel
This commit is contained in:
parent
5e3b6067c7
commit
5075294848
@ -1619,13 +1619,20 @@ class HTTP_WebDAV_Server
|
||||
|
||||
if ($http_stat{0} == 2) { // 2xx states are ok
|
||||
if ($options["timeout"]) {
|
||||
// more than a million is considered an absolute timestamp
|
||||
// less is more likely a relative value
|
||||
if ($options["timeout"]>1000000) {
|
||||
$timeout = "Second-".($options['timeout']-time());
|
||||
} else {
|
||||
$timeout = "Second-$options[timeout]";
|
||||
}
|
||||
if (is_numeric($options["timeout"]))
|
||||
{
|
||||
// more than a million is considered an absolute timestamp
|
||||
// less is more likely a relative value
|
||||
if ($options["timeout"]>1000000) {
|
||||
$timeout = "Second-".($options['timeout']-time());
|
||||
} else {
|
||||
$timeout = "Second-$options[timeout]";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$timeout = $options[timeout];
|
||||
}
|
||||
} else {
|
||||
$timeout = "Infinite";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user