mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-06 03:01:40 +01:00
fail if trying to unlink a directory
This commit is contained in:
parent
d58b746bf5
commit
d8766c735a
@ -499,7 +499,13 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
|
||||
if (!($stat = self::url_stat($path,0)) || !egw_vfs::check_access(dirname($path),egw_vfs::WRITABLE))
|
||||
{
|
||||
self::_remove_password($url);
|
||||
if (self::LOG_LEVEL) error_log(__METHOD__."($url) (type=$type) permission denied!");
|
||||
if (self::LOG_LEVEL) error_log(__METHOD__."($url) permission denied!");
|
||||
return false; // no permission or file does not exist
|
||||
}
|
||||
if ($stat['mime'] == self::DIR_MIME_TYPE)
|
||||
{
|
||||
self::_remove_password($url);
|
||||
if (self::LOG_LEVEL) error_log(__METHOD__."($url) is NO file!");
|
||||
return false; // no permission or file does not exist
|
||||
}
|
||||
$stmt = self::$pdo->prepare('DELETE FROM '.self::TABLE.' WHERE fs_id=:fs_id');
|
||||
|
Loading…
Reference in New Issue
Block a user