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

$helper->route gives wrong path for guests with trailing slashes and mod_rewrite disabled

    Details

      Description

      Conditions:

      mod_rewrite - Disabled
      User accessing board trough URL ending with /

      $helper->route does not honor the mod_rewrite option and always return "short" URL ( /pattern ) instead of /app.php/pattern

        Issue Links

          Activity

          Hide
          Lucifer4o Lucifer4o [X] (Inactive) added a comment -

          This should fix it

          Show
          Lucifer4o Lucifer4o [X] (Inactive) added a comment - This should fix it
          Hide
          VSE Matt Friedman added a comment -

          I can not reproduce this.

          Show
          VSE Matt Friedman added a comment - I can not reproduce this.
          Hide
          Marc Marc added a comment -

          I'm also unable to reproduce this. If I fix the tests provided in the PR, the tests also pass without the fix.

          Show
          Marc Marc added a comment - I'm also unable to reproduce this. If I fix the tests provided in the PR, the tests also pass without the fix.
          Hide
          Elsensee Oliver Schramm added a comment -

          I can reproduce this...
          Important is that mod_rewrite in ACP is disabled and you want to access anything through an URL ending with /. For example www.example.com/board/

          Show
          Elsensee Oliver Schramm added a comment - I can reproduce this... Important is that mod_rewrite in ACP is disabled and you want to access anything through an URL ending with /. For example www.example.com/board/
          Hide
          Rebeckas Rebeckas added a comment -

          I reported the same problem.

          My host solved the problem for me.

          It was missing

          RewriteBase / (This line was missing in my .htaccess)
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule ^(.*)$ app.php [QSA,L]
          

          Show
          Rebeckas Rebeckas added a comment - I reported the same problem. My host solved the problem for me. It was missing RewriteBase / (This line was missing in my .htaccess) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ app.php [QSA,L]

            People

            • Assignee:
              Marc Marc
              Reporter:
              Lucifer4o Lucifer4o [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development