Support » Plugin: Fast Secure Contact Form » Better action url

  • Resolved frizi


    In case of multilingual pages, the /de/ /en/ language url is used. The SI contact form is using the Request_uri as action url which is ignoring the actual language setting. Therefor I would suggest to change the from requst to redirect server global variable on
    line 914 of plugins\si-contact-form\si-contact-form.php to:

    if ( is_ssl() ) {
        $form_action_url = 'https://'.$_SERVER['HTTP_HOST'].$_SERVER['REDIRECT_URL'];
    } else {
        $form_action_url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REDIRECT_URL'];

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mike Challis


    That fix will break on some servers.

    See related discussion

    I am open to better ideas

    Well, kind of
    $form_action_url = qtrans_convertURL($_SERVER[‘REQUEST_URI’]);

    Plugin Author Mike Challis



    Will you test this?
    I can put in next version, but test if you can and let me know

          // compatible with qtranslate plugin
          // In case of multi-lingual pages, the /de/ /en/ language url is used.
          $form_action_url = qtrans_convertURL($_SERVER['REQUEST_URI']);
          $form_action_url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
    // set the type of request (SSL or not)
    if ( is_ssl() )
          $form_action_url = preg_replace('|http://|', 'https://', $form_action_url);
    Plugin Author Mike Challis


    Tested, confirmed, and fixed. Upgrade to or higher

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Better action url’ is closed to new replies.