Page MenuHomePhabricator

Extension Paths not escaped properly during install (\ should be \\)
Closed, ResolvedPublic

Description

Author: nudelbubu

Description:
After installing MediaWiki with some extensions activated and copying the created LocalSettings.php to the correct folder (d:\htdocs\test), php output was:

Warning: require_once(D:\htdocs\test\x1bxtensions\InputBox\InputBox.php): failed to open stream: Invalid argument in D:\htdocs\test\LocalSettings.php on line 123

Fatal error: require_once(): Failed opening required 'D:\htdocs\test\x1bxtensions\InputBox\InputBox.php' (include_path='.;C:\xampp\php\PEAR') in D:\htdocs\test\LocalSettings.php on line 123

Problem is produced by extension paths not being escaped properly, line in LocalSettings.php is:
require_once "$IP\extensions\InputBox\InputBox.php";
should be:
require_once "$IP\\extensions\\InputBox\\InputBox.php";


Version: 1.22.0
Severity: normal
OS: Windows 7
Platform: PC

Details

Reference
bz59079

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:33 AM
bzimport set Reference to bz59079.
bzimport added a subscriber: Unknown Object (MLST).
  • This bug has been marked as a duplicate of bug 58659 ***