Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-9411

sslzones redirect to non-ssl fails, trivial patch

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • None
    • 3.8.6
    • Misc
    • None
    • Operating System:
      PHP Version: (please be specific, like '4.4.3' or '5.1.5')
      Database and version:

    Description

      sslzones is failing to redirect from https to http due to a bug inadvertently introduced in revision 17417, when the check to determine current access method (http or https) was moved out to ezsys.php. Result:

      Fatal error: Call to a member function on a non-object in /eb/apps/ez/3.8/kernel/classes/ezsslzone.php on line 235
      Fatal error: eZ publish did not finish its request

      Patch:

      Index: kernel/classes/ezsslzone.php
      ===================================================================
      --- kernel/classes/ezsslzone.php        (revision 17453)
      +++ kernel/classes/ezsslzone.php        (working copy)
      @@ -231,6 +231,7 @@
               if ( $nowSSL && !$inSSL )
               {
                   // switch to plain HTTP
      +            $ini =& eZINI::instance();
                   $host = $ini->variable( 'SiteSettings', 'SiteURL' );
                   $sslZoneRedirectionURL = "http://" . $host  . $requestURI;
               }

      I'm a little surprised by this, since a simple check to see if sslzones was worked as expected after this patch was applied should have revealed this bug.

      Thanks
      Matthew

      Attachments

        Activity

          People

            ks ks
            matthewc matthewc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: