From 9b4e06c99800addeb5bba45a377ed68e0f0e1cff Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 10 Oct 2008 17:00:03 +0000 Subject: [PATCH] "fixed stream open mode 'rb' was treated as a write mode: now 'b'=binary is ignored, as all operations are binary" --- phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php index c581a43d62..a2a0858f5e 100644 --- a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php +++ b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php @@ -168,7 +168,7 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper $dir = egw_vfs::dirname($url); $this->opened_path = $path; - $this->opened_mode = $mode; + $this->opened_mode = $mode = str_replace('b','',$mode); // we are always binary, like every Linux system $this->opened_stream = null; if (!($stat = self::url_stat($path,0)) || $mode[0] == 'x') // file not found or file should NOT exist