Index: trunk/phase3/includes/RecentChange.php |
— | — | @@ -705,7 +705,9 @@ |
706 | 706 | // XXX: *HACK^2* the preg_replace() undoes much of what getInternalURL() does, but we |
707 | 707 | // XXX: need to call it so that URL paths on the Wikimedia secure server can be fixed |
708 | 708 | // XXX: by a custom GetInternalURL hook --vyznev 2008-12-10 |
709 | | - $url = preg_replace( '/title=[^&]*&/', '', $titleObj->getInternalURL( $url ) ); |
| 709 | + // XXX: Also, getInternalUrl() may return a protocol-relative URL. |
| 710 | + // XXX: In that case, expand it to an HTTP URL, even if this is an HTTPS request --catrope 2011-08-17 |
| 711 | + $url = preg_replace( '/title=[^&]*&/', '', wfExpandUrl( $titleObj->getInternalURL( $url ), PROTO_HTTP ) ); |
710 | 712 | } |
711 | 713 | |
712 | 714 | if( isset( $this->mExtra['oldSize'] ) && isset( $this->mExtra['newSize'] ) ) { |