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

--- Comment #5 from [email protected] ---
I forgot about this bug - upgraded my mediawiki to latest snapshot of 1.22 and
the issue came back.

The issue isn't related to a particular extension, but to the use of the
AutoLoader.  Above the samples were with WikiEditor. This time I came across it
with VisualEditor which uses AutoLoader.


In 1.22 latest snapshot 7/16/2013 line 1148-1152 of file
includes\AutoLoader.php:

        # Make an absolute path, this improves performance by avoiding some
stat calls
        if ( substr( $filename, 0, 1 ) != '/' && substr( $filename, 1, 1 ) !=
':' ) {
            global $IP;
            $filename = "$IP/$filename";
        }



This handles the case where $filename is a linux full path (starting at /) or a
windows full path (with the drive letter i.e. c:) but does not handle the case
of a network share on windows (\\server\path)

Again fix in first message does address this:

if ( substr( $filename, 0, 1 ) != '/' && substr( $filename, 1, 1 ) !=
':' && substr( $filename, 0, 2 ) != '\\\\')

Adjusted to look specifically for two forward slashes in case there's some
other case where one forward slash is ok?

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

Reply via email to