File tree Expand file tree Collapse file tree 11 files changed +14
-14
lines changed Expand file tree Collapse file tree 11 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 2
2
Deny from all
3
3
<% if $allow_from and !$allow_from.empty { -%>
4
4
Allow from <%= Array($allow_from).join(" ") %>
5
- <% }else { -%>
5
+ <% } else { -%>
6
6
Allow from <%= Array($allow_defaults).join(" ") %>
7
7
<% } -%>
Original file line number Diff line number Diff line change 1
- <% $_requires = if $requires { %>$requires<% }else {%>$requires_defaults<%} %>
1
+ <% $_requires = if $requires { %>$requires<% } else {%>$requires_defaults<%} %>
2
2
<% if type($_requires, 'generalized') == String { %>
3
3
<%- if !($_requires.downcase in ['', 'unmanaged']) { -%>
4
4
Require <%= $_requires %>
13
13
<%- $enforce_open = " <${enforce_str}" -%>
14
14
<%- $enforce_close = " </${enforce_str}" -%>
15
15
<%- $indentation = ' ' -%>
16
- <%- }else { -%>
16
+ <%- } else { -%>
17
17
<%- if $_requires['enforce'] { -%>
18
18
<%- scope.function_warning(["Class #{@title}: Require can only be overwritten with all, none or any."]) -%>
19
19
<%- } -%>
27
27
<%# %> <%= $indentation -%>Require <%= $req %>
28
28
<%- } -%>
29
29
<%# %><%= $enforce_close -%>
30
- <%- }else { -%>
30
+ <%- } else { -%>
31
31
<%- scope.function_warning(["Class #{@title}: Require hash must have a key named \"requires\" with array value"]) -%>
32
32
<%- } -%>
33
33
<% } -%>
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ GeoIPEnable <%= apache::bool2httpd($enable) %>
5
5
<%- Array($db_file).each |$file| { -%>
6
6
GeoIPDBFile <%= $file %> <%= $flag %>
7
7
<%- } -%>
8
- <%- }else { -%>
8
+ <%- } else { -%>
9
9
GeoIPDBFile <%= $db_file %> <%= $flag %>
10
10
<%- } -%>
11
11
<%- } -%>
Original file line number Diff line number Diff line change 1
1
<% if String(type($language_priority, 'generalized')).index('Array') == 0 { -%>
2
2
<%- $language_priority_updated = $language_priority.join(' ') -%>
3
- <% }else { -%>
3
+ <% } else { -%>
4
4
<%- $language_priority_updated = $language_priority -%>
5
5
<% } -%>
6
6
<% if String(type($force_language_priority, 'generalized')).index('Array') == 0 { -%>
7
7
<%- $force_language_priority_updated = $force_language_priority.join(' ') -%>
8
- <% }else { -%>
8
+ <% } else { -%>
9
9
<%- $force_language_priority_updated = $force_language_priority -%>
10
10
<% } -%>
11
11
LanguagePriority <%= $language_priority_updated %>
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ AddType application/x-pkcs7-crl .crl
38
38
# terminal dialog) has to provide the pass phrase on stdout.
39
39
<% if $passwd_file { -%>
40
40
NSSPassPhraseDialog "file:<%= $passwd_file %>"
41
- <% }else { -%>
41
+ <% } else { -%>
42
42
NSSPassPhraseDialog builtin
43
43
<% } -%>
44
44
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ ModPagespeedMessageBufferSize <%= $message_buffer_size %>
80
80
81
81
<% if String(type($additional_configuration, 'generalized')).index('Array') == 0 { -%>
82
82
<%= $additional_configuration.join("\n") %>
83
- <% }else { -%>
83
+ <% } else { -%>
84
84
<% $additional_configuration.each |$key, $value| { -%>
85
85
<%= $key %> <%= $value %>
86
86
<% } -%>
Original file line number Diff line number Diff line change 12
12
<Proxy *>
13
13
<%- if String(type($allow_from, 'generalized')).index('Array') == 0 { -%>
14
14
Require ip <%= $allow_from.join(" ") %>
15
- <%- }else { -%>
15
+ <%- } else { -%>
16
16
Require ip <%= $allow_from %>
17
17
<%- } -%>
18
18
</Proxy>
Original file line number Diff line number Diff line change 1
1
<% if type($timeouts, 'generalized') == String { -%>
2
2
RequestReadTimeout <%= $timeouts -%>
3
- <% }else { -%>
3
+ <% } else { -%>
4
4
<%- $timeouts.each |$timeout| { -%>
5
5
RequestReadTimeout <%= $timeout %>
6
6
<%- } -%>
Original file line number Diff line number Diff line change 66
66
SecTmpDir /var/lib/mod_security
67
67
SecDataDir /var/lib/mod_security
68
68
SecUploadDir /var/lib/mod_security
69
- <% }else { -%>
69
+ <% } else { -%>
70
70
SecDebugLog <%= $logroot %>/modsec_debug.log
71
71
SecAuditLog <%= $logroot %>/modsec_audit.log
72
72
SecTmpDir /var/lib/mod_security
Original file line number Diff line number Diff line change @@ -434,7 +434,7 @@ SecRule &TX:REAL_IP "@eq 0" \
434
434
setvar:tx.real_ip=%{remote_addr}, \
435
435
nolog, \
436
436
pass"
437
- <% }else { -%>
437
+ <% } else { -%>
438
438
# ------------------------------------------------------------------------
439
439
# OWASP ModSecurity Core Rule Set ver.3.3.2
440
440
# Copyright (c) 2006-2020 Trustwave and contributors. All rights reserved.
Original file line number Diff line number Diff line change 37
37
<%- $ssl_cipher.map |$protocol, $cipher| { -%>
38
38
SSLCipherSuite <%= $protocol %> <%= $cipher %>
39
39
<%- } -%>
40
- <%- }else { -%>
40
+ <%- } else { -%>
41
41
SSLCipherSuite <%= $ssl_cipher %>
42
42
<%- } -%>
43
43
<% if !($ssl_protocol.empty) { -%>
You can’t perform that action at this time.
0 commit comments