User "Preilly" posted a comment on MediaWiki.r101050. Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/101050#c25051 Commit summary:
fix protocol-relative url issue Comment: So, the code was like: $parsedUrl['scheme'] . '://' . $parsedUrl['host']... and because of protocol-relative urls $parsedUrl['scheme'] was empty. So, the urls were like, "://en.m.wikipedia.org/...". So, what I did was check to see if the first character of the string was, ":" if it is just give everything but the initial, ":". This made , "://en.m.wikipedia.org/..." correctly be, "//en.m.wikipedia.org/...". Does that make sense? _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
