Changeset 3085036
- Timestamp:
- 05/11/2024 07:35:30 PM (23 months ago)
- Location:
- simple-basic-contact-form/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
simple-basic-contact-form.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-basic-contact-form/trunk/readme.txt
r3080546 r3085036 145 145 146 146 == Changelog == 147 148 **20240511** 149 150 * Fixed security issues 147 151 148 152 **20240502** -
simple-basic-contact-form/trunk/simple-basic-contact-form.php
r3080542 r3085036 10 10 Requires at least: 4.1 11 11 Tested up to: 6.5 12 Version: 202405 0212 Version: 20240511 13 13 Requires PHP: 5.2 14 14 Text Domain: scf … … 39 39 40 40 $scf_wp_vers = '4.1'; 41 $scf_version = '202405 02';41 $scf_version = '20240511'; 42 42 $scf_plugin = esc_html__('Simple Basic Contact Form', 'scf'); 43 43 $scf_options = get_option('scf_options'); … … 541 541 542 542 $topic = (isset($_POST['scf_subject']) && !empty($_POST['scf_subject'])) ? sanitize_text_field( stripslashes(strip_tags(trim($_POST['scf_subject'])))) : $subject; 543 $topic = strip_shortcodes( $topic ); 543 544 $topic = str_replace( '[simple_contact_form_date]', current_time( get_option( 'date_format' ) ), $topic ); 544 545 545 546 $name = isset($_POST['scf_name']) ? sanitize_text_field( stripslashes(strip_tags(trim($_POST['scf_name']))) ) : ''; 547 $name = strip_shortcodes( $name ); 546 548 $topic = str_replace( '{name}', $name, $topic ); 547 549 548 550 $message = isset($_POST['scf_message']) ? sanitize_text_field( stripslashes(trim($_POST['scf_message'])) ) : ''; 551 $message = strip_shortcodes( $message ); 549 552 550 553 $email = isset($_POST['scf_email']) ? sanitize_text_field($_POST['scf_email']) : ''; 554 $email = strip_shortcodes( $email ); 551 555 552 556 $agent = isset($_SERVER['HTTP_USER_AGENT']) ? sanitize_text_field($_SERVER['HTTP_USER_AGENT']) : esc_html__('[ undefined ]', 'scf'); 557 $agent = sanitize_text_field( $agent ); 553 558 554 559 $form = isset($_SERVER['HTTP_REFERER']) ? sanitize_text_field($_SERVER['HTTP_REFERER']) : esc_html__('[ undefined ]', 'scf'); 560 $form = sanitize_text_field( $form ); 555 561 556 562 $host = isset($_SERVER['REMOTE_ADDR']) ? sanitize_text_field(gethostbyaddr($_SERVER['REMOTE_ADDR'])) : esc_html__('[ undefined ]', 'scf'); 563 $host = sanitize_text_field( $host ); 557 564 558 565 $from = !empty($recipfrom) ? $recipfrom : $email;
Note: See TracChangeset
for help on using the changeset viewer.