Skip to content

Commit

Permalink
Only set security.limit_extensions when not empty
Browse files Browse the repository at this point in the history
Before we got data types, $security_limit_extensions was an optional
array of string defaulting to undef.  It is now an array of string
defaulting to an empty array.

We do not want to emit security.limit_extensions when this array is
empty.
  • Loading branch information
smortex committed Aug 19, 2021
1 parent 13c261d commit a2549af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/fpm/pool.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,6 @@ php_admin_flag[<%= key %>] = <%= flag %>
<%= line.gsub "{", "%{" %>
<% end -%>

<% if @security_limit_extensions -%>
<% unless @security_limit_extensions.empty? -%>
security.limit_extensions = <%= @security_limit_extensions.join(" ") %>
<% end -%>

0 comments on commit a2549af

Please sign in to comment.