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

Login redirect from extension front controllers broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.1.0-b1
    • 3.1.0-dev, 3.1.0-a3
    • Extensions, Login
    • None

      When you are logged out, and you try to access an extension's front controller that is only accessible by being logged in, and are thus sent to the login form if you are using the login_box() function - after you login the redirection that should take you to the extension's front controller (the last page visited) is broken.

      If MOD REWRITING is disabled in the ACP, then the attempt to access http://forum/app.php/extension actually redirects you to http://app.php/extension.

      If MOD REWRITING is enabled, then the redirect appears to work, but examining the URL looks like MOD REWRITING was disabled, i.e.: instead of being redirected to http://forum/extension, you are redirected to http://forum/app.php/extension

      Close examination of the hidden redirect field that is generated by the login_box() shows:
      With MOD REWRITING: ./../app.php/extension?
      Without MOD REWRITING: ./app.php/extension?

      Also note the question marks appended to the redirect url too!

            nickvergessen Joas Schilling
            VSE Matt Friedman [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: