reuse existing helper function OC_Helper::is_function_enabled
we shall explode on ',' only
trimming all array elements
Merge pull request #6678 from owncloud/backport-6660-stable6

Backport 6660 stable6