"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/DAV/Browser/GuessContentType.php" between
dav-4.0.2.tar.gz and dav-4.0.3.tar.gz

About: sabre/dav is a WebDAV framework for PHP allowing to create WebDAV, CalDAV and CardDAV servers.

GuessContentType.php  (dav-4.0.2):GuessContentType.php  (dav-4.0.3)
skipping to change at line 88 skipping to change at line 88
/** /**
* Simple method to return the contenttype. * Simple method to return the contenttype.
* *
* @param string $fileName * @param string $fileName
* *
* @return string * @return string
*/ */
protected function getContentType($fileName) protected function getContentType($fileName)
{ {
// Just grabbing the extension if (null !== $fileName) {
$extension = strtolower(substr($fileName, strrpos($fileName, '.') + 1)); // Just grabbing the extension
if (isset($this->extensionMap[$extension])) { $extension = strtolower(substr($fileName, strrpos($fileName, '.') +
return $this->extensionMap[$extension]; 1));
if (isset($this->extensionMap[$extension])) {
return $this->extensionMap[$extension];
}
} }
return 'application/octet-stream'; return 'application/octet-stream';
} }
} }
 End of changes. 1 change blocks. 
4 lines changed or deleted 7 lines changed or added

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