Skip to content

Commit

Permalink
Remove defined check in Config _validate
Browse files Browse the repository at this point in the history
This commit removes the defined check in Config::_validate.
A key with empty string value was incorrectly passing the defined
check.
  • Loading branch information
renderorange committed Jul 2, 2024
1 parent f81e931 commit 234d202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Pasteburn/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ sub _validate {
}

# verify cookie secret_key is set and isn't the default string in the example config
unless ( exists $config->{cookie}{secret_key} && defined $config->{cookie}{secret_key} ) {
unless ( exists $config->{cookie}{secret_key} && $config->{cookie}{secret_key} ) {
die "config section cookie secret_key is required\n";
}

Expand Down

0 comments on commit 234d202

Please sign in to comment.