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