Index: trunk/phase3/includes/RawPage.php |
— | — | @@ -127,6 +127,15 @@ |
128 | 128 | $url = $_SERVER['PHP_SELF']; |
129 | 129 | } |
130 | 130 | |
| 131 | + if( $url == '' ) { |
| 132 | + # This will make the next check fail with a confusing error |
| 133 | + # message, so we should mention it separately. |
| 134 | + wfHttpError( 500, 'Internal Server Error', |
| 135 | + "\$_SERVER['PHP_SELF'] is not set. Perhaps you're using CGI" . |
| 136 | + " and haven't set cgi.fix_pathinfo = 1 in php.ini?" ); |
| 137 | + return; |
| 138 | + } |
| 139 | + |
131 | 140 | if( strcmp( $wgScript, $url ) ) { |
132 | 141 | # Internet Explorer will ignore the Content-Type header if it |
133 | 142 | # thinks it sees a file extension it recognizes. Make sure that |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -59,6 +59,7 @@ |
60 | 60 | * Added optional alternative Search form look - Go button & Advanced search |
61 | 61 | link instead of Go button & Search button |
62 | 62 | * (bug 2314) Add links to user custom CSS and JS to Special:Preferences |
| 63 | +* More helpful error message on raw page access if PHP_SELF isn't set |
63 | 64 | |
64 | 65 | === Bug fixes in 1.15 === |
65 | 66 | * (bug 16968) Special:Upload no longer throws useless warnings. |