owncloud httpd-service: fix trusted_domain when unset

When an empty string was given as trusted_domain, the trusted
domain was set to be empty string instead of not beeing set.
This commit is contained in:
Augustin Borsu 2015-11-26 15:26:58 +01:00 committed by Matej Cotman
parent 16fd6c1cf0
commit 9d5bf282c7

View File

@ -70,7 +70,7 @@ let
"proxyuserpwd" => "",
/* List of trusted domains, to prevent host header poisoning ownCloud is only using these Host headers */
'trusted_domains' => array('${config.trustedDomain}'),
${if config.trustedDomain != "" then "'trusted_domains' => array('${config.trustedDomain}')," else ""}
/* Theme to use for ownCloud */
"theme" => "",