What a difference a 'y' makes! The DAV spec calls for 'infinite' rather

than 'infinity'.
This commit is contained in:
Andrew McMillan 2006-12-02 00:20:02 +13:00
parent d3a71cd234
commit d3c4cc7f74

View File

@ -39,7 +39,7 @@ class CalDAVRequest
* A variety of requests may set the "Depth" header to control recursion
*/
$this->depth = ( isset($_SERVER['HTTP_DEPTH']) ? $_SERVER['HTTP_DEPTH'] : 0 );
if ( $this->depth == 'infinite' ) $this->depth = 99;
if ( $this->depth == 'infinity' ) $this->depth = 99;
$this->depth = intval($this->depth);
/**