applied patch [ 956110 ] webdav VFS checks for local directories

This commit is contained in:
Ralf Becker 2004-05-23 23:22:24 +00:00
parent 2a473dc9ba
commit 01d480cad1

View File

@ -2872,7 +2872,7 @@ $this->debug('ls:returning 3:');
)
);
if (is_dir ($p->real_full_path))
if ( $this->file_type(array('string' => $p->real_full_path, 'relatives' => array (RELATIVE_ROOT))) == 'Directory')
{
$mime_type = 'Directory';
}
@ -2883,10 +2883,6 @@ $this->debug('ls:returning 3:');
)
);
if($mime_type)
{
$GLOBALS['phpgw']->db->query ("UPDATE phpgw_vfs SET mime_type='".$mime_type."' WHERE directory='".$p->fake_leading_dirs_clean."' AND name='".$p->fake_name_clean."'" . $this->extra_sql (array ('query_type' => VFS_SQL_SELECT)), __LINE__, __FILE__);
}
}
$size = filesize ($p->real_full_path);