Skip to content

Commit

Permalink
Closes #1132
Browse files Browse the repository at this point in the history
  • Loading branch information
justingit committed Jun 23, 2023
1 parent 599cd7d commit d42445a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
6 changes: 0 additions & 6 deletions app/dada/installer-disabled/lib/DadaMailInstaller.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2946,22 +2946,16 @@ sub create_dada_config_file {
$security_params->{security_default_directory_permissions} = '0' . clean_up_var( $ip->{-security_default_directory_permissions} ) || undef;

if ( length( $ip->{-security_enable_csrf_protection } ) > 0 ) {
warn '$ip->{-security_enable_csrf_protection }: ' . $ip->{-security_enable_csrf_protection };
if($ip->{-security_enable_csrf_protection } == 1){
warn 'it 1';
$security_params->{security_enable_csrf_protection} = "1";
}
elsif($ip->{-security_enable_csrf_protection } == 0){
$security_params->{security_enable_csrf_protection} = "0";
warn 'it 0';
}
else {
delete($security_params->{security_enable_csrf_protection});
warn 'it nothing';
}
}


}

my $global_api_params = {};
Expand Down
3 changes: 1 addition & 2 deletions app/dada/installer-disabled/templates/dada_config.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,7 @@ $DIR_CHMOD = <!-- tmpl_var security_default_directory_permissions default="0755
<!-- tmpl_if expr="(security_enable_csrf_protection eq '1')" -->
$ENABLE_CSRF_PROTECTION = 1;
<!-- /tmpl_if --><!-- tmpl_if expr="(security_enable_csrf_protection eq '0')" -->
$ENABLE_CSRF_PROTECTION = 0;<!-- /tmpl_if -->
<!-- /tmpl_if -->
$ENABLE_CSRF_PROTECTION = 0;<!-- /tmpl_if --><!-- /tmpl_if -->

<!-- tmpl_if configure_www_engine -->
$WWW_ENGINE_OPTIONS = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2276,7 +2276,6 @@
name="security_enable_csrf_protection"
id="security_enable_csrf_protection_disabled"
value="0"
checked="checked"
>
Disabled
</label>
Expand Down

0 comments on commit d42445a

Please sign in to comment.