]> Sergey Matveev's repositories - public-inbox.git/commit
extmsg: support "//" protocol-relative URLs
authorEric Wong <e@80x24.org>
Mon, 22 Feb 2016 01:36:27 +0000 (01:36 +0000)
committerEric Wong <e@80x24.org>
Mon, 22 Feb 2016 01:43:58 +0000 (01:43 +0000)
commite6085d1526b0948de16c145e11e511226126b7fa
tree0a58382f24e7684f3a01fe2407c689aac3e6a3df
parentc8cb0460b462f935ee0d487f63c5eb9a0f23b438
extmsg: support "//" protocol-relative URLs

Avoid unintentionally switching protocols if the external site
we're linking to supports both HTTP and HTTPS.

We do not want to force HTTPS everywhere because potential
bugs and performance problems in the TLS stack may outweigh
the privacy benefits.  Leave up to site authors and users
to decide whether they want HTTPS or plain old HTTP.
lib/PublicInbox/ExtMsg.pm