https://bugzilla.wikimedia.org/show_bug.cgi?id=44157

       Web browser: ---
            Bug ID: 44157
           Summary: The return value of realpath should be tested or
                    realpath should be avoided
           Product: MediaWiki
           Version: 1.21-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General/Unknown
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

There are several places in the code where realpath() is used without verifying
that it didn't return false despite the two cases where realpath returns false:

   realpath() returns FALSE on failure, e.g. if the file does not exist.

   The running script must have executable permissions on all
   directories in the hierarchy, otherwise realpath() will return FALSE. 

The permission bit caused bug #44132.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to