index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-12-10 15:41:35 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-12-10 15:41:35 +0100 |
commit | 654f9a542d64fdc9a5efb3c8ac08cc7553aa69ae (patch) | |
tree | 1ad72da29f54bf70bc105804958cf911e920498f | |
parent | 44ee11f1cd56869d7706269f529f5bec446d38f8 (diff) |
-rw-r--r-- | packages/pkginfo.php | 4 |
diff --git a/packages/pkginfo.php b/packages/pkginfo.php index eac3b09..8265bc7 100644 --- a/packages/pkginfo.php +++ b/packages/pkginfo.php @@ -8,7 +8,9 @@ require_once BASE . "/lib/style.php"; $memcache = new Memcache; $memcache -> connect('localhost', 11211) or die ('Memcached Connection Error'); $pkgapi_reachable = $memcache -> get('pkgapi_reachable'); - $tld = array_pop((explode('.', $_SERVER['HTTP_HOST']))); + $tld = explode('.', $_SERVER['HTTP_HOST']); + end($tld); + $tld = current($tld); if (array_key_exists('HTTPS', $_SERVER) && ($_SERVER['HTTPS'] == 'on')) $protocol = 'https'; else |