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

Function.php redirect bug

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 3.0.4
    • Login
    • None
    • PHP Environment: 5.2.8
      Database: SQL Server 2008

      Hi

      The redirect function in the function.php is generating garbage URLs.

      Here's the line that's causing the problem.

      $url = generate_board_url() . '/' . $user->page['page_dir'] . '/' . $url;

      $user->page['page_dir'] is returning the absolute path to the file (i.e. c:\website\my.domain.com\adm)

      Here's the output I get.

      http://my.domain.com/c:\website\my.domain.com\adm/index.php?sid=blahblahblah

      Here's the version info for the function.php file.

      @version $Id: functions.php 9519 2009-05-23 16:11:40Z acydburn $

      I'm able to generate the error as follows.

      • Logout
      • Login as admin
      • Click the administrator control panel link at the bottom of the page
      • Login again (the page prompts for logon credentials again)
      • Wait for the http redirect to occur

      Thanks

        1. output.txt
          0.4 kB
          bkejser
        2. adm.txt
          0.6 kB
          bkejser
        3. root.txt
          0.4 kB
          bkejser

            Acyd Burn Meik Sievertsen [X] (Inactive)
            bkejser bkejser
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: