diff --git a/phpgwapi/inc/class.vfs_sql.inc.php b/phpgwapi/inc/class.vfs_sql.inc.php index ced2e6f50f..136aa699cb 100644 --- a/phpgwapi/inc/class.vfs_sql.inc.php +++ b/phpgwapi/inc/class.vfs_sql.inc.php @@ -902,7 +902,7 @@ { if ($fp = fopen ($p->real_full_path, 'wb')) { - fwrite ($fp, $data['content'], strlen ($data['content'])); + fwrite ($fp, $data['content']); fclose ($fp); $write_ok = 1; }