Jack Phoenix has submitted this change and it was merged.

Change subject: Fix URL bug -- need a protocol here, can't use 
protocol-relative URLs
......................................................................


Fix URL bug -- need a protocol here, can't use protocol-relative URLs

Change-Id: I35b24a53fceaf3b0409a095a95300f0cd815ae31
---
M LinkFeed.php
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Jack Phoenix: Verified; Looks good to me, approved



diff --git a/LinkFeed.php b/LinkFeed.php
index 930f58e..62a1239 100644
--- a/LinkFeed.php
+++ b/LinkFeed.php
@@ -43,8 +43,8 @@
        <item>
                <title><?php echo $item->getTitle() ?></title>
                <description><![CDATA[<?php echo $item->getDescription() 
?>]]></description>
-               <link><?php echo $url ?></link>
-               <guid isPermaLink="true"><?php echo $url ?></guid>
+               <link><?php echo wfExpandUrl( $url, PROTO_CURRENT ) ?></link>
+               <guid isPermaLink="true"><?php echo wfExpandUrl( $url, 
PROTO_CURRENT ) ?></guid>
        </item>
 <?php
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/283163
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I35b24a53fceaf3b0409a095a95300f0cd815ae31
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LinkFilter
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <[email protected]>
Gerrit-Reviewer: Jack Phoenix <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to