Merge pull request #1963 from eyesonlyhack/allLinksTranslatingToHTTP

Fix #1776 - All links regardless of protocol translate to http:// links
This commit is contained in:
Marcel Klehr 2013-10-28 04:15:17 -07:00
commit 975eae350e

View file

@ -185,7 +185,7 @@ domline.createDomLine = function(nonEmpty, doesWrap, optBrowser, optDocument)
{ {
if (href) if (href)
{ {
if(!~href.indexOf("http")) // if the url doesn't include http or https etc prefix it. if(!~href.indexOf("://") && !~href.indexOf("mailto:")) // if the url doesn't include a protocol prefix, assume http
{ {
href = "http://"+href; href = "http://"+href;
} }