X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWiki.php;h=aed1f65cb39037e86ad12cc00bfd547d966ade34;hb=3c65da7e737a23b99d354b160f665e4c47d35876;hp=2ef1382afdf75f0aa7410c55acd06059c047cafb;hpb=a9d8a2090579b41d3e533b8829718ce481471b9b;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