From 60f29315e338b49c5b89a7f6618d66a16e98588c Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 5 Dec 2007 10:43:31 +0000 Subject: [PATCH] Updated language detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8009 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/accept-to-gettext.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/accept-to-gettext.inc b/include/accept-to-gettext.inc index f791e4de8..8c19933c4 100644 --- a/include/accept-to-gettext.inc +++ b/include/accept-to-gettext.inc @@ -97,7 +97,7 @@ function al2gt($gettextlangs, $mime) /* default to "everything is acceptable", as RFC2616 specifies */ $acceptLang=(($_SERVER["HTTP_ACCEPT_LANGUAGE"] == '') ? '*' : $_SERVER["HTTP_ACCEPT_LANGUAGE"]); - $acceptChar=(($_SERVER["HTTP_ACCEPT_CHARSET"] == '') ? '*' : + $acceptChar=(($_SERVER["HTTP_ACCEPT_CHARSET"] == '') ? 'ISO-8859-1,utf-8;q=0.7,*;q=0.7' : $_SERVER["HTTP_ACCEPT_CHARSET"]); $alparts=@preg_split("/,/",$acceptLang); $acparts=@preg_split("/,/",$acceptChar); -- 2.30.2