diff --git a/phpgwapi/inc/class.vfs_webdav_server.inc.php b/phpgwapi/inc/class.vfs_webdav_server.inc.php index 12d425b8bc..7a39f5630d 100644 --- a/phpgwapi/inc/class.vfs_webdav_server.inc.php +++ b/phpgwapi/inc/class.vfs_webdav_server.inc.php @@ -472,4 +472,20 @@ class vfs_webdav_server extends HTTP_WebDAV_Server_Filesystem { return egw_vfs::checkLock($path); } + + /** + * GET method handler for directories + * + * Reimplemented to send content type header with charset + * + * @param string directory path + * @return void function has to handle HTTP response itself + */ + function GetDir($fspath, &$options) + { + // add a content-type header to overwrite an existing default charset in apache (AddDefaultCharset directiv) + header('Content-type: text/html; charset='.translation::charset()); + + parent::GetDir($fspath, $options); + } } \ No newline at end of file