Map empty mimetypes to octet-stream for Oracle DBMS.

remotes/origin/stable6
Andreas Fischer 12 years ago
parent fa6ae81149
commit b3e39dd3d9
  1. 4
      lib/private/files/cache/cache.php

@ -64,6 +64,10 @@ class Cache {
* @return int
*/
public function getMimetypeId($mime) {
if (empty($mime)) {
// Can not insert empty string into Oracle NOT NULL column.
$mime = 'application/octet-stream';
}
if (empty(self::$mimetypeIds)) {
$this->loadMimetypes();
}

Loading…
Cancel
Save