WordPress.org

Forums

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

  1. leereamsnyder
    Member
    Posted 1 year 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 1 year 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form by BestWebSoft
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags