From: cajus Date: Wed, 5 Dec 2007 10:43:31 +0000 (+0000) Subject: Updated language detection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=60f29315e338b49c5b89a7f6618d66a16e98588c;p=gosa.git Updated language detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8009 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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);