Пример #1
0
    /**
     * Parses the PROPFIND request and returns a request object.
     *
     * Microsoft clients may send an empty request, so that we guess, that they
     * meant an allprop request, fill the body struct accordingly and then
     * dispatch to the original method.
     * 
     * @param string $path 
     * @param string $body 
     * @return ezcWebdavPropFindRequest
     */
    protected function parsePropFindRequest($path, $body)
    {
        // Empty request seem to actually mean an allprop request.
        if (trim($body) === '') {
            $body = '<?xml version="1.0" encoding="utf-8" ?>
<D:propfind xmlns:D="DAV:">
  <D:allprop/>
</D:propfind>';
        }
        return parent::parsePropFindRequest($path, $body);
    }
Пример #2
0
 public function parsePropFindRequest($path, $body)
 {
     return parent::parsePropFindRequest($path, $body);
 }