* (bug 7932) Make sure that edit toolbar clears floats so it appears correctly.
* (bug 6873) When viewing old revisions, add link to diff to current version.
* (bug 3315) Provide rollback link directly on history page.
-* Detect CGI configurations where PATH_INFO is set up correctly.
- PHP config var cgi.fix_pathinfo isn't detectable through ini_get(), but
- we can find some side-effects. Only tested on lighttpd so far, hopefully
- right on Apache too!
* Replace 'old-revision-navigation' message with 'revision-info' and
'revision-nav' messages, wrapped in divs with appropriate id's.
* (bug 4178) MediaWiki:Common.js will now be included for all users if
case "cgi":
case "cgi-fcgi":
// For some reason cgi.fix_pathinfo isn't retrievable via ini_get()
- if( isset( $_SERVER['ORIG_PATH_INFO'] ) ) {
- echo "cgi.fix_pathinfo is set, good; ";
- } else {
- echo "cgi.fix_pathinfo is not set, assuming PATH_INFO broken; ";
- $conf->prettyURLs = false;
- }
+ // but even if it is, it's not necessarily safe.
+ // @fixme add optional runtime testing...?
+ $conf->prettyURLs = false;
break;
case "apache2filter":
case "isapi":
/**
* Whether to support URLs like index.php/Page_title
- * These often break when PHP is set up in CGI mode, so
- * ignore PATH_INFO for CGI unless cgi.fix_pathinfo is
- * set.
+ * These often break when PHP is set up in CGI mode.
+ * PATH_INFO *may* be correct if cgi.fix_pathinfo is
+ * set, but then again it may not; lighttpd converts
+ * incoming path data to lowercase on systems with
+ * case-insensitive filesystems, and there have been
+ * reports of problems on Apache as well.
+ *
+ * To be safe we'll continue to keep it off by default.
*
* Override this to false if $_SERVER['PATH_INFO']
- * contains unexpectedly incorrect garbage.
+ * contains unexpectedly incorrect garbage, or to
+ * true if it is known to be correct.
*
* Note that having this incorrectly set to true can
* cause redirect loops when "pretty URLs" are used.
*/
-$wgUsePathInfo =
- ( strpos( php_sapi_name(), 'cgi' ) === false ) ||
- isset( $_SERVER['ORIG_PATH_INFO'] );
+$wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
+
/**#@+
* Script users will request to get articles