Author: kevinrose
Description:
I am running under IIS with the files stored on network storage.
I get an error from line 1142 in includes\AutoLoader.php when the $filename being passed is already a network share. Specifically in my case it then adds $IP a second time.
Here are the variables from my situation:
From debugging we know that:
$IP is set to "\\server\share\mediawiki"
The offending class being loaded in LocalSettings.php:
require_once("$IP/extensions/WikiEditor/WikiEditor.php" );
After line 1142 $filename = "\\server\share\mediawiki\\server\share\mediawiki\extensions\WikiEditor\WikiEditor.php"
Line 1140 checks if the first character is a / (root), or the second character is a : (windows local drive).
To work around the problem I added a third check, that the second character is a slash (windows network share):
if ( substr( $filename, 0, 1 ) != '/' && substr( $filename, 1, 1 ) != ':' && substr( $filename, 1, 1 ) != '\\') {
Version: 1.20.x
Severity: normal