https://github.com/owncloud/core/commit/2c00ab13cf1dca45035e88ecad854997f78cf51c