symphonycms/symphony-2 — pull request #1988 by jensscherbl (2014-03-26 04:39:37+00:00)
Title: resolves #1904, fixes #1901

Doesn't look like much, but I actually spent hours debugging and researching this... :/

Apparently, webkit and non-webkit browsers [behave differently][1] when it comes to internationalized domain names, so we shouldn't rely on `window.location.href` in javascript for routing etc.

Relying on string length is also a bad idea when dealing with utf8 encoded strings.

Regarding cyrillic domains: Shouldn't be a problem now for Symphony (works in Firefox), but are not supported in Safari for [security reasons][2], so don't use cyrillic domains to avoid much bigger problems.

[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=743488
[2]: http://support.apple.com/kb/TA22996