WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Lightbox 2] SSL and lightbox2 options page problem (1 post)

  1. jasmineaura
    Member
    Posted 4 years ago #

    When viewing the lightbox-2 options page in wp-admin (logged in over SSL), before submitting, firefox complained that the info would be sent over unencrypted connection.

    Viewing the page source revealed that the form "action" property was linking to http://(correct url) instead of https://(correct url), and hence submitting didn't work because the session cookie was for https:// not http:// and it asks me to login to wp-admin over insecure http:// connection - undesirable.

    The problem lies @ line 27 in lightbox2.php

    /* options page (required for saving prefs)*/
    $options_page = get_option('siteurl') . '/wp-admin/admin.php?page=lightbox-2/options.php';

    The fix is to add the following lines right after the above:

    if(is_ssl()) {
            $options_page = str_replace("http://", "https://", $options_page);
    }

    Cheers,
    Jas

    http://wordpress.org/extend/plugins/lightbox-2/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags