revert backport from here: https://github.com/owncloud/core/pull/5088
This shouldn't have been backported.
Merge branch 'stable5' of github.com:owncloud/core into stable5