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

phpbb_own_realpath() doesn't always replicate realpath() behaviour

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.7-PL1
    • Fix Version/s: 3.0.15-RC1, 3.1.12-RC1
    • Component/s: Other
    • Labels:
      None
    • Environment:
      NIX

      Description

      File: t/ta
      Target: /
      php realpath: /
      phpbb realpath:
      os realpath: /
      
      File: t/tb
      Target: .
      php realpath: /home/pie/apps/rcf/webroot/forums/t
      phpbb realpath: .
      os realpath: /home/pie/apps/rcf/webroot/forums/t
      
      File: t/tc
      Target: ..
      php realpath: /home/pie/apps/rcf/webroot/forums
      phpbb realpath: ..
      os realpath: /home/pie/apps/rcf/webroot/forums
      
      File: t/td
      Target: d
      php realpath: /home/pie/apps/rcf/webroot/forums/t/d
      phpbb realpath:
      os realpath: /home/pie/apps/rcf/webroot/forums/t/d
      
      File: t/te
      Target: ./d
      php realpath: /home/pie/apps/rcf/webroot/forums/t/d
      phpbb realpath:
      os realpath: /home/pie/apps/rcf/webroot/forums/t/d
      
      File: t/tf
      Target: ../t/d
      php realpath: /home/pie/apps/rcf/webroot/forums/t/d
      phpbb realpath:
      os realpath: /home/pie/apps/rcf/webroot/forums/t/d
      
      pie@snap forums % ls -l t
      -rw-r--r--  1 pie  pie    0 Apr 10 23:36 d
      lrwxr-xr-x  1 pie  pie    1 Apr 10 23:36 ta -> /
      lrwxr-xr-x  1 pie  pie    1 Apr 10 23:36 tb -> .
      lrwxr-xr-x  1 pie  pie    2 Apr 10 23:36 tc -> ..
      lrwxr-xr-x  1 pie  pie    1 Apr 10 23:36 td -> d
      lrwxr-xr-x  1 pie  pie    3 Apr 10 23:36 te -> ./d
      lrwxr-xr-x  1 pie  pie    6 Apr 10 23:36 tf -> ../t/d
      

        Attachments

          Activity

            People

            • Assignee:
              CHItA CHItA
              Reporter:
              ToonArmy Chris Smith [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: