From c726a92a3fee9e6dec3ad5af8c4e412491f109b8 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 3 Jul 2012 21:40:13 -0700 Subject: punycode hostname --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') 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) -- cgit v1.2.3