keithclark/selectivizr — pull request #31 by shesek (2012-03-04 10:26:35+00:00)
Title: Make getProtocolAndHost work on URLs that doesn't end with `/`

`getProtocolAndHost` doesn't work properly when the `` is set without a trailing `/` (e.g. https://github.com). I know its technically not correct for URLs to have no path at all, but this caused me some issues because of the way WordPress stores the base URL (see the last paragraph [here](http://www.shesek.info/web-development/selectivizr-internet-explorer-and-idn-domains) [the rest of the post might be interesting too, perhaps it could be solved in Selectivizr?]).