X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles_versions%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=blobdiff_plain;f=includes%2FSetup.php;h=f6c8245eb15a9c870f59d98c5346e51b29f80c0a;hb=ff0d8c153634da99c77efae15056c7a78ce5a044;hp=83ca516f06e40e75c0aa9ee1080f22bdd39562c8;hpb=06e63a5843a7989e0aff90edfa3d6be2e6dfb2fb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Setup.php b/includes/Setup.php index 83ca516f06..f6c8245eb1 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -390,6 +390,11 @@ if ( !defined( 'MW_COMPILED' ) ) { wfProfileOut( $fname . '-includes' ); } +if ( $wgSecureLogin && substr( $wgServer, 0, 2 ) !== '//' ) { + $wgSecureLogin = false; + wfWarn( 'Secure login was enabled on a server that only supports HTTP or HTTPS. Disabling secure login.' ); +} + # Now that GlobalFunctions is loaded, set defaults that depend # on it. if ( $wgTmpDirectory === false ) {