owncloud/core — pull request #9581 by blizzz (2014-07-10 22:18:54+00:00)
Title: Backport of #9500 to stable6

It is not a simple cherry-pick backport because stable6 and master differ too much in this regard. OTOH the changes are not overly big. Also to see whether autotests runs correctly (locally unrelated tests in preferences are failing for me, but because of my setup).