diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-09-10 14:30:02 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-09-10 14:30:02 +0200 |
commit | a064536ec13c8effb5e97b152e1949bc6dab6612 (patch) | |
tree | 07a316f0fd80f33fc5dbd3c4a95e6da32fca8576 /settings/admin.php | |
parent | 0d28ba06625466adda4cc985d701962843eb5be2 (diff) | |
download | nextcloud-server-a064536ec13c8effb5e97b152e1949bc6dab6612.tar.gz nextcloud-server-a064536ec13c8effb5e97b152e1949bc6dab6612.zip |
Fixed select2 for admin and apps page
Added explicit escaping.
Now internally using a pipe symbol as separator for select2, to make it
possible to use group names containing commas.
Diffstat (limited to 'settings/admin.php')
-rwxr-xr-x | settings/admin.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/settings/admin.php b/settings/admin.php index 03befdba66f..6b93e6e3f03 100755 --- a/settings/admin.php +++ b/settings/admin.php @@ -58,7 +58,8 @@ $tmpl->assign('shareEnforceExpireDate', OC_Appconfig::getValue('core', 'shareapi $excludeGroups = OC_Appconfig::getValue('core', 'shareapi_exclude_groups', 'no') === 'yes' ? true : false; $tmpl->assign('shareExcludeGroups', $excludeGroups); $excludedGroupsList = OC_Appconfig::getValue('core', 'shareapi_exclude_groups_list', ''); -$tmpl->assign('shareExcludedGroupsList', $excludedGroupsList); +$excludedGroupsList = explode(',', $excludedGroupsList); // FIXME: this should be JSON! +$tmpl->assign('shareExcludedGroupsList', implode('|', $excludedGroupsList)); // Check if connected using HTTPS $tmpl->assign('isConnectedViaHTTPS', OC_Request::serverProtocol() === 'https'); |