Permet d'editer un fichier vide nouvellement créé

This commit is contained in:
Alan Garcia 2014-01-15 14:45:37 +00:00
parent 48248cf5c9
commit cf01241915
1 changed files with 1 additions and 1 deletions

View File

@ -795,7 +795,7 @@ class m_bro {
}
$finfo = finfo_open(FILEINFO_MIME_TYPE);
$mime = finfo_file($finfo,$absolute);
if ( substr($mime,0,5)=="text/" || $mime == "application/x-empty") {
if ( substr($mime,0,5)=="text/" || $mime == "application/x-empty" || $mime == "inode/x-empty") {
return true;
}
return false;