From: Tim Starling Date: Sat, 20 Sep 2008 02:55:02 +0000 (+0000) Subject: Reverted r40719, plainly flawed, for instance the hard-coded references to index... X-Git-Tag: 1.31.0-rc.0~45211 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=7cccb912050850ca26d973ca18a78f732f3d181c;p=lhc%2Fweb%2Fwiklou.git Reverted r40719, plainly flawed, for instance the hard-coded references to index.php have no place if the point is to make it work for other entry points. --- diff --git a/CREDITS b/CREDITS index ee84c623a8..f2a4741768 100644 --- a/CREDITS +++ b/CREDITS @@ -47,7 +47,6 @@ following names for their contribution to the product. * Juliano F. Ravasi * Louperivois * Marooned -* Matt Johnston * Max Semenik * Michael De La Rue * Mike Horvath diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 5662ec1108..1024ecfb3c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -199,8 +199,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 14398) mwsuggest.js: Let width of container be configurable * (bug 15543) Only include user touched timestamp to generated CSS * (bug 15497) Removed encoding attribute from tag -* (bug 15544) Wiki not set up message (NoLocalSettings.php) now works for - non-index.php entry pages (e.g. api.php). Patch by Matt Johnston. * (bug 12284) Special:Preferences now sets a returnto parameter on the link to Special:Userlogin. Patch by Marooned. * Fixed the HTTP accept language string detection length in diff --git a/includes/templates/NoLocalSettings.php b/includes/templates/NoLocalSettings.php index fde97067b2..75a7e95a93 100644 --- a/includes/templates/NoLocalSettings.php +++ b/includes/templates/NoLocalSettings.php @@ -17,10 +17,6 @@ $path = ''; if( isset( $_SERVER['SCRIPT_NAME'] )) { $path = htmlspecialchars( preg_replace('/index.php5?/', '', $_SERVER['SCRIPT_NAME']) ); } -#Remove filename in path, prevents going to corrupt URLs (e.g. http://server/path/api.phpconfig/index.php) -if(substr($path, strlen($path)-1) != "/"){ - $path = substr($path, 0, strrpos($path, "/")+1); -} ?>