Author: ralfbecker
New Revision: 30230
URL: http://www.egroupware.org/viewvc/egroupware?rev=30230&view=rev
Log:
fail if trying to unlink a directory
Modified:
branches/1.6/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php
Modified: branches/1.6/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/branches/1.6/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php?rev=30230&r1=30229&r2=30230&view=diff
β branches/1.6/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php (original)
+++ branches/1.6/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php Wed May 19 19:34:49 2010
@@ -499,7 +499,13 @@
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');
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs