"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tine20/Tinebase/Server/WebDAV.php" between
tine20-2020.08.3.tar.gz and tine20-2020.08.4.tar.gz

About: Tine 2.0 is a platform independent business software system which combines groupware and customer relationship management (CRM). Commercial support is available. Source code.

WebDAV.php  (tine20-2020.08.3):WebDAV.php  (tine20-2020.08.4)
skipping to change at line 208 skipping to change at line 208
\Sabre\DAV\Server::$exposeVersion = false; \Sabre\DAV\Server::$exposeVersion = false;
self::$_server->httpResponse = new Tinebase_WebDav_HTTP_LogResponse( ); self::$_server->httpResponse = new Tinebase_WebDav_HTTP_LogResponse( );
if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) { if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) {
self::$_server->debugExceptions = true; self::$_server->debugExceptions = true;
Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ . " headers: " . print_r(self::$_server->httpRequest->getHeaders(), Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ . " headers: " . print_r(self::$_server->httpRequest->getHeaders(),
true)); true));
$contentType = self::$_server->httpRequest->getHeader('Content-T ype'); $contentType = self::$_server->httpRequest->getHeader('Content-T ype');
Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ . " requestContentType: " . $contentType . ' requestMethod: ' . $this->_request-> getMethod()); Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ . " requestContentType: " . $contentType . ' requestMethod: ' . $this->_request-> getMethod());
if ($this->_request->getMethod() !== 'PUT' && (stripos($contentT ype, 'text') === 0 || stripos($contentType, '/xml') !== false)) { if (stripos($contentType, 'text') === 0 || stripos($contentType, '/xml') !== false) {
// NOTE inputstream can not be rewinded // NOTE inputstream can not be rewinded
$debugStream = fopen('php://temp', 'r+'); $debugStream = fopen('php://temp', 'r+');
stream_copy_to_stream($this->_body, $debugStream); stream_copy_to_stream($this->_body, $debugStream);
rewind($debugStream); rewind($debugStream);
$this->_body = $debugStream; $this->_body = $debugStream;
Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE __ . " <<< *DAV request\n" . stream_get_contents($this->_body)); Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE __ . " <<< *DAV request\n" . stream_get_contents($this->_body));
rewind($this->_body); rewind($this->_body);
} else { } else {
Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE __ . " <<< *DAV request\n -- BINARY DATA --"); Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE __ . " <<< *DAV request\n -- BINARY DATA --");
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)