Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-7706

ACP Logout redirect wrong $url if $dir is empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 3.0.3
    • 3.0.2
    • ACP
    • None
    • PHP Environment:
      Database:

      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.

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

              Created:
              Updated:
              Resolved: