Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-7706

ACP Logout redirect wrong $url if $dir is empty

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • 3.0.2
    • 3.0.3
    • ACP
    • None
    • PHP Environment:
      Database:

    Description

      In ACP
      After click the "ACP Logout" and then redirected wth meta_refresh
      the $redirect_url is something like
      http://localhost/ ... /forum//index.php?sid=f54ed7...
      which makes url problem in overall_header.php if using the

      {ROOT_PATH}

      variable.

      note : two slash before index.php

      I found that it works ok if I made some changes inside
      -> includes/function.php -> function redirect{ -> line 1905
      $url = $dir . '/' . $url;
      becomes:
      if (!empty($dir))
      {
      $url = $dir . '/' . $url;
      }

      in my case the $dir variable is empty value, which causing the problem.

      Attachments

        Issue Links

          Activity

            People

              ToonArmy Chris Smith
              vhad01 vhad01
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: