Skip to content

Commit f36d4d2

Browse files
committed
fix for when rules are empty
1 parent f26d245 commit f36d4d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interceptors/Security.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ component accessors="true" extends="coldbox.system.Interceptor" {
2626
*/
2727
function configure(){
2828
// Shorthand for rules
29-
if ( isArray( variables.properties.firewall.rules ) && arrayLen( variables.properties.firewall.rules ) ) {
29+
if ( isArray( variables.properties.firewall.rules ) ) {
3030
variables.properties.firewall.rules = variables.cbSecurity
3131
.getDefaultRuleSettings()
3232
.append( { "inline" : variables.properties.firewall.rules }, true );

0 commit comments

Comments
 (0)