]> source.dussan.org Git - nextcloud-server.git/commit
host and hostname are different things
authorRoeland Jago Douma <rullzer@owncloud.com>
Wed, 3 Feb 2016 10:28:07 +0000 (11:28 +0100)
committerRoeland Jago Douma <rullzer@owncloud.com>
Wed, 3 Feb 2016 10:28:07 +0000 (11:28 +0100)
commitaef43816c2a874c55896a6ba45edcee39eb899b9
treed1fbf37d8d5f93b18987f189d858181d2e77423b
parentd66a836251c6c17b31331f2a2816d5ccb059997d
host and hostname are different things

host can contain the port (host of http://example.com:1234 is
example.com:1234) while hostname never contains a port. They can however
be similar. If you navigate to http://example.com then both host and
hostname will be example.com.

* Fixed docs
* added getHostName function
core/js/js.js