From 4cd0d35ff70fb0cf86ea6cf7d3d8374388c88ee3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 29 Aug 2016 17:14:48 +0200 Subject: [PATCH] possible fix for deactivated / or /apps --- api/src/Vfs/Links/StreamWrapper.php | 4 ++-- api/src/Vfs/Sqlfs/StreamWrapper.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/Vfs/Links/StreamWrapper.php b/api/src/Vfs/Links/StreamWrapper.php index f0b7821822..90f5bd474b 100644 --- a/api/src/Vfs/Links/StreamWrapper.php +++ b/api/src/Vfs/Links/StreamWrapper.php @@ -146,7 +146,7 @@ class StreamWrapper extends LinksParent (list($app) = array_slice(explode('/',$url),-3,1)) && $app === 'addressbook') { $ret = array( - 'ino' => md5($url), + 'ino' => '#'.md5($url), 'name' => '.entry', 'mode' => self::MODE_FILE|Vfs::READABLE, // required by the stream wrapper 'size' => 1024, // fmail does NOT attach files with size 0! @@ -166,7 +166,7 @@ class StreamWrapper extends LinksParent if ($id && !isset($rel_path)) { $ret = array( - 'ino' => md5($url), + 'ino' => '#'.md5($url), 'name' => $id, 'mode' => self::MODE_DIR, // required by the stream wrapper 'size' => 0, diff --git a/api/src/Vfs/Sqlfs/StreamWrapper.php b/api/src/Vfs/Sqlfs/StreamWrapper.php index 2e2022b8c0..6478a1031b 100644 --- a/api/src/Vfs/Sqlfs/StreamWrapper.php +++ b/api/src/Vfs/Sqlfs/StreamWrapper.php @@ -385,7 +385,7 @@ class StreamWrapper extends Api\Db\Pdo implements Vfs\StreamWrapperIface $ret = fclose($this->opened_stream) && $ret; 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; return $ret;