X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FWiki.php;h=aed1f65cb39037e86ad12cc00bfd547d966ade34;hb=22e045ab12acb5e7285adc8087585d001487a22d;hp=2ef1382afdf75f0aa7410c55acd06059c047cafb;hpb=32e1086bfd4090e56715456461c85cec67e36b1a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Wiki.php b/includes/Wiki.php index 2ef1382afd..aed1f65cb3 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -542,7 +542,7 @@ class MediaWiki { $request->getProtocol() == 'http' ) { $oldUrl = $request->getFullRequestURL(); - $redirUrl = str_replace( 'http://', 'https://', $oldUrl ); + $redirUrl = preg_replace( '#^http://#', 'https://', $oldUrl ); if ( $request->wasPosted() ) { // This is weird and we'd hope it almost never happens. This