http/s form display issue
-
In the function
cntctfrm_display_form
you have an issue with how you decide to show the port number for HTTPS sites.This is at line 1409 on contact_form.php: You have
if ('80' != $_SERVER["SERVER_PORT"])
, but HTTPS is typically port 443 but doesn’t use the port number in URLs. So that should be if'80' != $_SERVER["SERVER_PORT"] || '443' != $_SERVER["SERVER_PORT"]
Also (this may just be our server environment),
$_SERVER['HTTPS']
is sometimes all-uppercase “ON”, not all-lowercase “on”. So I have to change$_SERVER["HTTPS"] == "on"
tostrtolower($_SERVER["HTTPS"]) == "on"
to make sure that check works.Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘http/s form display issue’ is closed to new replies.