• Dotster web host doesn’t set the HTTPS environment variable like you expect. The following function will correctly detect SSL usage. This will eliminate SSL warning errors seen in browsers on Submit.

    //if ( getenv('HTTPS') == 'on' ) {   //OLD
    if ( si_contact_detect_ssl() ) {     //NEW

    function si_contact_detect_ssl() {   //NEW
     if ($_SERVER["HTTPS"] == "on") {
      return TRUE;
     } elseif ($_SERVER["HTTPS"] == 1) {
      return TRUE;
     } elseif ($_SERVER['SERVER_PORT'] == 443) {
      return TRUE;
     } elseif (getenv('HTTPS') == 'on') {
      return TRUE;
     } else {
      return FALSE;
     }
    }

    http://wordpress.org/extend/plugins/si-contact-form/

Viewing 1 replies (of 1 total)
  • This is fixed in 3.1.1
    I use a built in wordpress function though.

    – Use WP function is_ssl() for better SSL compatibility.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Fast Secure Contact Form] SSL / HTTPS fixed’ is closed to new replies.