https://bugzilla.wikimedia.org/show_bug.cgi?id=44953
Web browser: ---
Bug ID: 44953
Summary: AutoLoader adds $IP to network share path
Product: MediaWiki
Version: 1.20.2
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: ResourceLoader
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
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 ) != '\\') {
--
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