discourse/discourse — pull request #1909 by macournoyer (2014-02-06 03:51:44+00:00)
Title: Fix shortenUrl helper to not crash when URL doesn't include any "/".

If `shortenUrl` is sent a URL (href) w/o "/" (like a mailto: for eg.) it crashes and makes the the whole page crash and everything else after that stops working. Puppies die. Babies cries. Not pretty.