Results 1 to 10 of 98

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Location
    Pittsburgh, PA
    Posts
    237
    Plugin Contributions
    1

    Default Re: Firefox SSL security warning

    Quote Originally Posted by fold View Post
    I've added the following code to html_output.php in 'function zen_href_link' to fix the security warning issue with firefox etc. Just thought I would post it here for anyone else. Feedback/criticism/suggestions greatly appreciated!

    Code:
    function zen_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true, $static = false, $use_dir_ws_catalog = true) {
        global $request_type, $session_started, $http_domain, $https_domain;
    
    if($connection=='NONSSL' && $request_type=='SSL')
    {
    			
    	if( $page == FILENAME_ADVANCED_SEARCH_RESULT
    	|| $page == FILENAME_ADVANCED_SEARCH
    	|| $page == FILENAME_DEFAULT
    	|| $page == FILENAME_SHOPPING_CART)
    	{
    		$connection = $request_type;
    	}
    }
    
    ..rest of function is unchanged...
    -Fold
    Although it seems to keep more pages secure than necessary, it seems to work for me. I prefer this over a faster site potentially perceived as insecure. Even if this code slows site performance I still think this is better. Thanks

  2. #2
    Join Date
    Oct 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: Firefox SSL security warning

    Sorry but would you be able to explain a little more clearly what text needs to be replaced?

    At the minute in my: admin/includes/functions/html_output.php file for the text you have mentioned above I have:

    PHP Code:
    // The HTML href link wrapper function
      
    function zen_href_link($page ''$parameters ''$connection 'NONSSL'$add_session_id true) {
        global 
    $request_type$session_started$http_domain$https_domain;
        if (
    $page == '') {
          die(
    '</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>Function used:<br><br>zen_href_link(\'' $page '\', \'' $parameters '\', \'' $connection '\')</b>');
        }

        if (
    $connection == 'NONSSL') {
          
    $link HTTP_SERVER DIR_WS_ADMIN;
        } elseif (
    $connection == 'SSL') {
          if (
    ENABLE_SSL_ADMIN == 'true') {
            
    $link HTTPS_SERVER DIR_WS_HTTPS_ADMIN;
          } else {
            
    $link HTTP_SERVER DIR_WS_ADMIN;
          }
        } else {
          die(
    '</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL<br><br>Function used:<br><br>zen_href_link(\'' $page '\', \'' $parameters '\', \'' $connection '\')</b>');
        }
        if (!
    strstr($page'.php')) $page .= '.php';
        if (
    $parameters == '') {
          
    $link $link $page;
          
    $separator '?';
        } else {
          
    $link $link $page '?' $parameters;
          
    $separator '&';
        }

        while ( (
    substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link substr($link0, -1); 
    Where do I need to put the code that you mentioned in the above post?

    Thanks in advance.

    Graham.

  3. #3
    Join Date
    Nov 2009
    Posts
    59
    Plugin Contributions
    0

    Default Re: Firefox SSL security warning

    Hi

    I have tried the fixes mentioned in this thread but am still getting the warning on Product Info Pages but not on All Products listing.

    When I first looked at the site this morning, I could not get the Create an Account page - it said Session had expired .... but about the third tome of trying it, it worked (without having made any changes.)

    I have recently changed hosts and changed to SSL.

    In IE, I am getting an empty cart when I add to cart. In Firefox I am getting a warning. I can add to cart from product listing pages but not from product info pages.

    Please please please ... can anyone help me?

    Thanks

    Gillian
    qualitygardenfurniture.com/store

 

 

Similar Threads

  1. Suddenly getting SSL Security Warning
    By katco in forum General Questions
    Replies: 51
    Last Post: 11 Aug 2011, 04:32 PM
  2. SSL Security Warning IE8
    By feanix02 in forum General Questions
    Replies: 21
    Last Post: 16 Nov 2010, 02:22 AM
  3. SSL Security Warning
    By GTrotter in forum General Questions
    Replies: 11
    Last Post: 16 Jul 2009, 10:24 PM
  4. FireFox - Security Warning on Forms. HELP!
    By sartor in forum General Questions
    Replies: 8
    Last Post: 14 Feb 2009, 12:14 AM
  5. [NOT A BUG] Firefox SSL security warning
    By netbouy in forum Bug Reports
    Replies: 5
    Last Post: 28 Jan 2007, 05:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg