Plugin Directory

Changeset 3395797


Ignore:
Timestamp:
11/14/2025 02:28:57 PM (5 months ago)
Author:
bestwebsoft
Message:

"V4.3.5 - * Bugs fixed. "

Location:
contact-form-plugin
Files:
217 added
2 edited

Legend:

Unmodified
Added
Removed
  • contact-form-plugin/trunk/contact_form.php

    r3356051 r3395797  
    77Text Domain: contact-form-plugin
    88Domain Path: /languages
    9 Version: 4.3.4
     9Version: 4.3.5
    1010Author URI: https://bestwebsoft.com/
    1111License: GPLv2 or later
     
    18911891                        $user_info_string .= '<tr><td>' . esc_html__( 'Sent from (ip address)', 'contact-form-plugin' ) . ':</td><td>' . $cntctfrm_remote_addr . ' ( ' . $userdomain . ' )' . '</td></tr>';
    18921892                    } else {
    1893                         $user_info_string .= esc_html__( 'Sent from (ip address)', 'contact-form-plugin' ) . ': ' . $cntctfrm_remote_addr . ' ( ' . $userdomain . ' )' . "\n";
     1893                        $user_info_string .= esc_html__( 'Sent from (ip address)', 'contact-form-plugin' ) . ': ' . $cntctfrm_remote_addr . ' ( ' . $userdomain . ' )' . "\r\n";
    18941894                    }
    18951895                }
     
    18981898                        $user_info_string .= '<tr><td>' . esc_html__( 'Date/Time', 'contact-form-plugin' ) . ':</td><td>' . date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), strtotime( current_time( 'mysql' ) ) ) . '</td></tr>';
    18991899                    } else {
    1900                         $user_info_string .= esc_html__( 'Date/Time', 'contact-form-plugin' ) . ': ' . date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), strtotime( current_time( 'mysql' ) ) ) . "\n";
     1900                        $user_info_string .= esc_html__( 'Date/Time', 'contact-form-plugin' ) . ': ' . date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), strtotime( current_time( 'mysql' ) ) ) . "\r\n";
    19011901                    }
    19021902                }
     
    19051905                        $user_info_string .= '<tr><td>' . esc_html__( 'Sent from (referer)', 'contact-form-plugin' ) . ':</td><td>' . $form_action_url . '</td></tr>';
    19061906                    } else {
    1907                         $user_info_string .= esc_html__( 'Sent from (referer)', 'contact-form-plugin' ) . ': ' . $form_action_url . "\n";
     1907                        $user_info_string .= esc_html__( 'Sent from (referer)', 'contact-form-plugin' ) . ': ' . $form_action_url . "\r\n";
    19081908                    }
    19091909                }
     
    19121912                        $user_info_string .= '<tr><td>' . esc_html__( 'Using (user agent)', 'contact-form-plugin' ) . ':</td><td>' . $user_agent . '</td></tr>';
    19131913                    } else {
    1914                         $user_info_string .= esc_html__( 'Using (user agent)', 'contact-form-plugin' ) . ': ' . $user_agent . "\n";
     1914                        $user_info_string .= esc_html__( 'Using (user agent)', 'contact-form-plugin' ) . ': ' . $user_agent . "\r\n";
    19151915                    }
    19161916                }
     
    19851985                $message_text         .= $user_info_string . '</table></body></html>';
    19861986            } else {
    1987                 $message_text = esc_html__( 'Site', 'contact-form-plugin' ) . ': ' . get_bloginfo( 'url' ) . "\n";
     1987                $message_text = esc_html__( 'Site', 'contact-form-plugin' ) . ': ' . get_bloginfo( 'url' ) . "\r\n";
    19881988
    19891989                foreach ( $message_order_fields as $field ) {
     
    19931993                            if ( 1 === absint( $cntctfrm_options['display_name_field'] ) ) {
    19941994                                $message_text .= ( 1 === absint( $cntctfrm_options['change_label_in_email'] ) ) ? $cntctfrm_options['name_label'][ $lang ] : esc_html__( 'Name', 'contact-form-plugin' );
    1995                                 $message_text .= ': ' . $name . "\n";
     1995                                $message_text .= ': ' . $name . "\r\n";
    19961996                            }
    19971997                            break;
     
    19991999                            if ( 1 === absint( $cntctfrm_options['display_address_field'] ) ) {
    20002000                                $message_text .= ( 1 === absint( $cntctfrm_options['change_label_in_email'] ) ) ? $cntctfrm_options['address_label'][ $lang ] : esc_html__( 'Address', 'contact-form-plugin' );
    2001                                 $message_text .= ': ' . $address . "\n";
     2001                                $message_text .= ': ' . $address . "\r\n";
    20022002                            }
    20032003                            break;
    20042004                        case 'email':
    20052005                            $message_text .= ( 1 === absint( $cntctfrm_options['change_label_in_email'] ) ) ? $cntctfrm_options['email_label'][ $lang ] : esc_html__( 'Email', 'contact-form-plugin' );
    2006                             $message_text .= ': ' . $email . "\n";
     2006                            $message_text .= ': ' . $email . "\r\n";
    20072007                            break;
    20082008                        case 'subject':
    20092009                            $message_text .= ( 1 === absint( $cntctfrm_options['change_label_in_email'] ) ) ? $cntctfrm_options['subject_label'][ $lang ] : esc_html__( 'Subject', 'contact-form-plugin' );
    2010                             $message_text .= ': ' . $subject . "\n";
     2010                            $message_text .= ': ' . $subject . "\r\n";
    20112011                            break;
    20122012                        case 'message':
    20132013                            $message_text .= ( 1 === absint( $cntctfrm_options['change_label_in_email'] ) ) ? $cntctfrm_options['message_label'][ $lang ] : esc_html__( 'Message', 'contact-form-plugin' );
    2014                             $message_text .= ': ' . $message . "\n";
     2014                            $message_text .= ': ' . $message . "\r\n";
    20152015                            break;
    20162016                        case 'phone':
    20172017                            if ( 1 === absint( $cntctfrm_options['display_phone_field'] ) ) {
    20182018                                $message_text .= ( 1 === absint( $cntctfrm_options['change_label_in_email'] ) ) ? $cntctfrm_options['phone_label'][ $lang ] : esc_html__( 'Phone Number', 'contact-form-plugin' );
    2019                                 $message_text .= ': ' . $phone . "\n";
     2019                                $message_text .= ': ' . $phone . "\r\n";
    20202020                            }
    20212021                            break;
     
    20232023                            if ( 1 === absint( $cntctfrm_options['display_dropdown'] ) ) {
    20242024                                $message_text .= ( 1 === absint( $cntctfrm_options['change_label_in_email'] ) ) ? $cntctfrm_options['dropdown_label'][ $lang ] : esc_html__( 'Dropdown', 'contact-form-plugin' );
    2025                                 $message_text .= ': ' . $dropdown . "\n";
     2025                                $message_text .= ': ' . $dropdown . "\r\n";
    20262026                            }
    20272027                            break;
     
    20292029                }
    20302030                $message_text  = apply_filters( 'cntctfrm_cf_id_message_text_field', $message_text );
    2031                 $message_text .= "\n";
     2031                $message_text .= "\r\n";
    20322032
    20332033                $message_text_for_user = $message_text;
     
    20632063                /* To send HTML mail, the Content-type header must be set */
    20642064                if ( 1 === absint( $cntctfrm_options['html_email'] ) ) {
    2065                     $headers .= 'Content-type: text/html; charset=utf-8' . "\n";
     2065                    $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
    20662066                } else {
    2067                     $headers .= 'Content-type: text/plain; charset=utf-8' . "\n";
     2067                    $headers .= 'Content-type: text/plain; charset=utf-8' . "\r\n";
    20682068                }
    20692069
     
    21142114            } else {
    21152115                /* Set headers */
    2116                 $headers .= 'MIME-Version: 1.0' . "\n";
     2116                $headers .= 'MIME-Version: 1.0' . "\r\n";
    21172117
    21182118                if ( 1 === absint( $cntctfrm_options['attachment'] ) && ! empty( $_FILES['cntctfrm_contact_attachment']['tmp_name'] ) && array( '' ) !== $_FILES['cntctfrm_contact_attachment']['tmp_name'] ) {
     
    21212121
    21222122                    /* Additional headers */
    2123                     $headers .= 'From: ' . $from_field_name . ' <' . $from_email . '>' . "\n";
     2123                    $headers .= 'From: ' . $from_field_name . ' <' . $from_email . '>' . "\r\n";
    21242124
    21252125                    $bound_text = 'jimmyP123';
     
    21312131                    $headers .= "Content-Type: multipart/mixed; boundary=\"$bound_text\"";
    21322132
    2133                     $message_text          = esc_html__( 'If you can see this MIME, it means that the MIME type is not supported by your email client!', 'contact-form-plugin' ) . "\n";
     2133                    $message_text          = esc_html__( 'If you can see this MIME, it means that the MIME type is not supported by your email client!', 'contact-form-plugin' ) . "\r\n";
    21342134                    $message_text_for_user = $message_text;
    21352135
    21362136                    if ( 1 === absint( $cntctfrm_options['html_email'] ) ) {
    2137                         $message_text          .= $bound . "\nContent-Type: text/html; charset=\"utf-8\"\nContent-Transfer-Encoding: 7bit\n\n" . $message_block . "\n\n";
    2138                         $message_text_for_user .= $bound . "\nContent-Type: text/html; charset=\"utf-8\"\nContent-Transfer-Encoding: 7bit\n\n" . $message_block_for_user . "\n\n";
     2137                        $message_text          .= $bound . "\r\nContent-Type: text/html; charset=\"utf-8\"\r\nContent-Transfer-Encoding: 7bit\r\n\r\n" . $message_block . "\r\n\r\n";
     2138                        $message_text_for_user .= $bound . "\r\nContent-Type: text/html; charset=\"utf-8\"\r\nContent-Transfer-Encoding: 7bit\r\n\r\n" . $message_block_for_user . "\r\n\r\n";
    21392139                    } else {
    2140                         $message_text          .= $bound . "\nContent-Type: text/plain; charset=\"utf-8\"\nContent-Transfer-Encoding: 7bit\n\n" . $message_block . "\n\n";
    2141                         $message_text_for_user .= $bound . "\nContent-Type: text/plain; charset=\"utf-8\"\nContent-Transfer-Encoding: 7bit\n\n" . $message_block_for_user . "\n\n";
     2140                        $message_text          .= $bound . "\r\nContent-Type: text/plain; charset=\"utf-8\"\r\nContent-Transfer-Encoding: 7bit\r\n\r\n" . $message_block . "\r\n\r\n";
     2141                        $message_text_for_user .= $bound . "\r\nContent-Type: text/plain; charset=\"utf-8\"\r\nContent-Transfer-Encoding: 7bit\r\n\r\n" . $message_block_for_user . "\r\n\r\n";
    21422142                    }
    21432143
     
    21582158                            $description = basename( $cntctfrm_path_of_uploaded_file );
    21592159                        }
    2160                         $message_text          .= $bound . "\n" .
    2161                             'Content-Type: application/octet-stream; name="' . $file_name . "\"\n" .
    2162                             'Content-Description: ' . $description . "\n" .
    2163                             "Content-Disposition: attachment;\n" . ' filename="' . $file_name . '"; size=' . $file_size . ";\n" .
    2164                             "Content-Transfer-Encoding: base64\n\n" . chunk_split( base64_encode( $file ) ) . "\n\n";
    2165                         $message_text_for_user .= $bound . "\n" .
    2166                             'Content-Type: application/octet-stream; name="' . $file_name . "\"\n" .
    2167                             'Content-Description: ' . $description . "\n" .
    2168                             "Content-Disposition: attachment;\n" . ' filename="' . $file_name . '"; size=' . $file_size . ";\n" .
    2169                             "Content-Transfer-Encoding: base64\n\n" . chunk_split( base64_encode( $file ) ) . "\n\n";
     2160                        $message_text          .= $bound . "\r\n" .
     2161                            'Content-Type: application/octet-stream; name="' . $file_name . "\"\r\n" .
     2162                            'Content-Description: ' . $description . "\r\n" .
     2163                            "Content-Disposition: attachment;\r\n" . ' filename="' . $file_name . '"; size=' . $file_size . ";\r\n" .
     2164                            "Content-Transfer-Encoding: base64\r\n\r\n" . chunk_split( base64_encode( $file ) ) . "\r\n\r\n";
     2165                        $message_text_for_user .= $bound . "\r\n" .
     2166                            'Content-Type: application/octet-stream; name="' . $file_name . "\"\r\n" .
     2167                            'Content-Description: ' . $description . "\r\n" .
     2168                            "Content-Disposition: attachment;\r\n" . ' filename="' . $file_name . '"; size=' . $file_size . ";\r\n" .
     2169                            "Content-Transfer-Encoding: base64\r\n\r\n" . chunk_split( base64_encode( $file ) ) . "\r\n\r\n";
    21702170                    }
    21712171                    $message_text          .= $bound_last;
     
    21752175                    /* To send HTML mail, header must be set */
    21762176                    if ( 1 === absint( $cntctfrm_options['html_email'] ) ) {
    2177                         $headers .= 'Content-type: text/html; charset=utf-8' . "\n";
     2177                        $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
    21782178                    } else {
    2179                         $headers .= 'Content-type: text/plain; charset=utf-8' . "\n";
     2179                        $headers .= 'Content-type: text/plain; charset=utf-8' . "\r\n";
    21802180                    }
    21812181
    21822182                    /* Additional headers */
    2183                     $headers .= 'From: ' . $from_field_name . ' <' . $from_email . '>' . "\n";
     2183                    $headers .= 'From: ' . $from_field_name . ' <' . $from_email . '>' . "\r\n";
    21842184                }
    21852185                if ( isset( $_POST['cntctfrm_contact_send_copy'] ) && 1 === absint( $_POST['cntctfrm_contact_send_copy'] ) ) {
  • contact-form-plugin/trunk/readme.txt

    r3356051 r3395797  
    55Requires at least: 6.5
    66Tested up to: 6.8.2
    7 Stable tag: 4.3.4
     7Stable tag: 4.3.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    331331== Changelog ==
    332332
     333= V4.3.5 - 14.11.2025 =
     334* Bugfix : HTML issue in the letters has been fixed.
     335
    333336= V4.3.4 - 02.09.2025 =
    334337* Update : All functionality was updated for WordPress 6.8.2.
     
    743746== Upgrade Notice ==
    744747
     748= V4.3.5 =
     749* Bugs fixed.
     750
    745751= V4.3.4 =
    746752* The compatibility with new WordPress version updated.
Note: See TracChangeset for help on using the changeset viewer.