summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-12-21 11:33:12 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-12-21 11:33:12 +0000
commit4b0d7f55dd07239e773f105c1eb8b14906caa9c6 (patch)
treec621054eceb2591d27f9647834708194ae428d91 /includes
parent532f02b327d557127a32f42ff93ce83892998c58 (diff)
downloadbrdo-4b0d7f55dd07239e773f105c1eb8b14906caa9c6.tar.gz
brdo-4b0d7f55dd07239e773f105c1eb8b14906caa9c6.tar.bz2
#202925 report by beholder, patch by myself: (notice fix) only consider languages with a host set when comparing with the current host in domain language negotiation
Diffstat (limited to 'includes')
-rw-r--r--includes/language.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/language.inc b/includes/language.inc
index 15bb5a3d4..e997efa37 100644
--- a/includes/language.inc
+++ b/includes/language.inc
@@ -21,7 +21,7 @@ function language_initialize() {
$languages = language_list();
foreach ($languages as $language) {
$parts = parse_url($language->domain);
- if ($_SERVER['SERVER_NAME'] == $parts['host']) {
+ if (!empty($parts['host']) && ($_SERVER['SERVER_NAME'] == $parts['host'])) {
return $language;
}
}