mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
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:
parent
16fd6c1cf0
commit
9d5bf282c7
@ -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" => "",
|
||||
|
Loading…
Reference in New Issue
Block a user