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

Redirect to installer might be invalid when accessing subfolder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 3.3.12-RC1
    • None
    • None
    • None

      After PHPBB3-12785, we now prefer REQUEST_URI over PHP_SELF. This has actually forced an issue that would have appeared if someone would have disabled PHP_SELF beforehand:

      When a user accesses example.com/foo/bar/, where example.com/foo/bar/ is the forum root, they'd be redirected to the installer. Unfortunately, the redirect in common.php does run dirname() on REQUEST_URI, which results in dirname() on /foo/bar/, essentially ending up with /foo. This is an oversight and dirname should not be run if the URI ends with a slash.

            Marc Marc
            Marc Marc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: