Backport for owncloud/security-tracker#48