[Plugin: Fast Secure Contact Form] SSL / HTTPS fixed
-
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; } }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘[Plugin: Fast Secure Contact Form] SSL / HTTPS fixed’ is closed to new replies.