mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 19:33:54 +01:00
"fixed stream open mode 'rb' was treated as a write mode: now 'b'=binary is ignored, as all operations are binary"
This commit is contained in:
parent
4c6dffcc2d
commit
9b4e06c998
@ -168,7 +168,7 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
|
|||||||
$dir = egw_vfs::dirname($url);
|
$dir = egw_vfs::dirname($url);
|
||||||
|
|
||||||
$this->opened_path = $path;
|
$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;
|
$this->opened_stream = null;
|
||||||
|
|
||||||
if (!($stat = self::url_stat($path,0)) || $mode[0] == 'x') // file not found or file should NOT exist
|
if (!($stat = self::url_stat($path,0)) || $mode[0] == 'x') // file not found or file should NOT exist
|
||||||
|
Loading…
Reference in New Issue
Block a user