aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-03 21:40:13 -0700
committerfriendica <info@friendica.com>2012-07-03 21:40:13 -0700
commitc726a92a3fee9e6dec3ad5af8c4e412491f109b8 (patch)
tree760560cf324ca91187ebd79e41ab64bf75c94818 /boot.php
parentb550b1326b9e45c1938b738407c6b32cbace09cb (diff)
downloadvolse-hubzilla-c726a92a3fee9e6dec3ad5af8c4e412491f109b8.tar.gz
volse-hubzilla-c726a92a3fee9e6dec3ad5af8c4e412491f109b8.tar.bz2
volse-hubzilla-c726a92a3fee9e6dec3ad5af8c4e412491f109b8.zip
punycode hostname
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 6b79274d4..13821a8b0 100644
--- a/boot.php
+++ b/boot.php
@@ -375,7 +375,7 @@ if(! class_exists('App')) {
// convert punycode back to utf-8
require_once('library/simplepie/idn/idna_convert.class.php');
$x = new idna_convert();
- $this->hostname = $x->decode($s);
+ $this->hostname = $x->decode($_SERVER['SERVER_NAME']);
}
if(x($_SERVER,'SERVER_PORT') && $_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 443)