WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form
[resolved] http/s form display issue (2 posts)

  1. leereamsnyder
    Member
    Posted 6 months ago #

    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" to strtolower($_SERVER["HTTPS"]) == "on" to make sure that check works.

    Thanks!

    https://wordpress.org/plugins/contact-form-plugin/

  2. bestwebsoft
    Member
    Plugin Author

    Posted 6 months ago #

    Hi,

    Thank you for the information, we will check if it does not cause any conflicts and after that make the necessary changes in the plugin.

    Sincerely,
    BestWebSoft Support Team

Reply

You must log in to post.

About this Plugin

About this Topic

Tags