|
@@ 1181-1185 (lines=5) @@
|
| 1178 |
|
// cgi.fix_pathinfo is disabled. In that case, fall back to SCRIPT_NAME |
| 1179 |
|
// to get the path to the current script... hopefully it's reliable. SIGH |
| 1180 |
|
$path = false; |
| 1181 |
|
if ( !empty( $_SERVER['PHP_SELF'] ) ) { |
| 1182 |
|
$path = $_SERVER['PHP_SELF']; |
| 1183 |
|
} elseif ( !empty( $_SERVER['SCRIPT_NAME'] ) ) { |
| 1184 |
|
$path = $_SERVER['SCRIPT_NAME']; |
| 1185 |
|
} |
| 1186 |
|
if ( $path === false ) { |
| 1187 |
|
$this->showError( 'config-no-uri' ); |
| 1188 |
|
return false; |
|
@@ 1200-1204 (lines=5) @@
|
| 1197 |
|
// cgi.fix_pathinfo is disabled. In that case, fall back to SCRIPT_NAME |
| 1198 |
|
// to get the path to the current script... hopefully it's reliable. SIGH |
| 1199 |
|
$path = false; |
| 1200 |
|
if ( !empty( $_SERVER['PHP_SELF'] ) ) { |
| 1201 |
|
$path = $_SERVER['PHP_SELF']; |
| 1202 |
|
} elseif ( !empty( $_SERVER['SCRIPT_NAME'] ) ) { |
| 1203 |
|
$path = $_SERVER['SCRIPT_NAME']; |
| 1204 |
|
} |
| 1205 |
|
if ( $path !== false ) { |
| 1206 |
|
$scriptPath = preg_replace( '{^(.*)/(mw-)?config.*$}', '$1', $path ); |
| 1207 |
|
|