possible fix for deactivated / or /apps

This commit is contained in:
Ralf Becker 2016-08-29 17:14:48 +02:00
parent 59c098b2d6
commit dc4e2d73dc
2 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@ class StreamWrapper extends LinksParent
(list($app) = array_slice(explode('/',$url),-3,1)) && $app === 'addressbook') (list($app) = array_slice(explode('/',$url),-3,1)) && $app === 'addressbook')
{ {
$ret = array( $ret = array(
'ino' => md5($url), 'ino' => '#'.md5($url),
'name' => '.entry', 'name' => '.entry',
'mode' => self::MODE_FILE|Vfs::READABLE, // required by the stream wrapper 'mode' => self::MODE_FILE|Vfs::READABLE, // required by the stream wrapper
'size' => 1024, // fmail does NOT attach files with size 0! 'size' => 1024, // fmail does NOT attach files with size 0!
@ -166,7 +166,7 @@ class StreamWrapper extends LinksParent
if ($id && !isset($rel_path)) if ($id && !isset($rel_path))
{ {
$ret = array( $ret = array(
'ino' => md5($url), 'ino' => '#'.md5($url),
'name' => $id, 'name' => $id,
'mode' => self::MODE_DIR, // required by the stream wrapper 'mode' => self::MODE_DIR, // required by the stream wrapper
'size' => 0, 'size' => 0,

View File

@ -385,7 +385,7 @@ class StreamWrapper extends Api\Db\Pdo implements Vfs\StreamWrapperIface
$ret = fclose($this->opened_stream) && $ret; $ret = fclose($this->opened_stream) && $ret;
unset(self::$stat_cache[$this->opened_path]); unset(self::$stat_cache[$this->opened_path]);
$this->opened_stream = $this->opened_path = $this->opened_mode = $this->opend_fs_id = null; $this->opened_stream = $this->opened_path = $this->opened_mode = $this->opened_fs_id = null;
$this->operation = self::DEFAULT_OPERATION; $this->operation = self::DEFAULT_OPERATION;
return $ret; return $ret;