| @@ -442,8 +442,14 @@ | ||
| 442 | 442 | |
| 443 | 443 | self::preserve_format_option_backslashes( $values ); |
| 444 | 444 | |
| 445 | 445 | if ( isset( $values['type'] ) ) { |
| 446 | + if ( 'dropdown' === $values['type'] ) { | |
| 447 | + // To avoid conflicts with security plugins the value "dropdown" is sent for select fields. | |
| 448 | + // This is because "select" gets matched for SQL injection attempts. | |
| 449 | + $values['type'] = 'select'; | |
| 450 | + } | |
| 451 | + | |
| 446 | 452 | $values = apply_filters( 'frm_clean_' . $values['type'] . '_field_options_before_update', $values ); |
| 447 | 453 | |
| 448 | 454 | if ( $values['type'] === 'hidden' && isset( $values['field_options'] ) && isset( $values['field_options']['clear_on_focus'] ) ) { |
| 449 | 455 | // don't keep the old placeholder setting for hidden fields |