From 14f758d2c15016bb656293058de679ddd79ce9d9 Mon Sep 17 00:00:00 2001 From: Daniel Friesen Date: Sun, 14 Aug 2011 14:07:12 +0000 Subject: [PATCH] Followup r94375; Use PROTO_RELATIVE so that when $wgServer is a protocol relative url we don't potentially polute the cache if getFullURL is called by an extension that outputs to cache. getFullURL includes a #fragment so it's more likely that extensions outputting urls in situations that don't support protocol relative urls are using getLocalURL and expanding it. --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index ba86d60841..c58fff8060 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -843,7 +843,7 @@ class Title { # Expand the url to make it a full url. Note that getLocalURL has the # potential to output full urls for a variety of reasons, so we use # wfExpandUrl instead of simply prepending $wgServer - $url = wfExpandUrl( $url ); + $url = wfExpandUrl( $url, PROTO_RELATIVE ); # Finally, add the fragment. $url .= $this->getFragmentForURL(); -- 2.20.1