[Plugin: Lightbox 2] SSL and lightbox2 options page problem
-
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 https://(correct url) instead of https://(correct url), and hence submitting didn’t work because the session cookie was for https:// not https:// and it asks me to login to wp-admin over insecure https:// 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("https://", "https://", $options_page); }
Cheers,
Jas
- The topic ‘[Plugin: Lightbox 2] SSL and lightbox2 options page problem’ is closed to new replies.