Skip to content

Commit a2549af

Browse files
committed
Only set security.limit_extensions when not empty
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.
1 parent 13c261d commit a2549af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/fpm/pool.conf.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,6 @@ php_admin_flag[<%= key %>] = <%= flag %>
378378
<%= line.gsub "{", "%{" %>
379379
<% end -%>
380380

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

0 commit comments

Comments
 (0)