X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Faccept-to-gettext.inc;h=adb5c1d3018939ffed7347513c0bd3003273393f;hb=87f8edde74e5f55fff922e11e28a264bbb34f0ac;hp=621863cb1a9e9c956643d783a5b352dc36baaf97;hpb=0b41dcb31c6b6ae7817cbb4a136a573c17e81869;p=gosa.git diff --git a/include/accept-to-gettext.inc b/include/accept-to-gettext.inc index 621863cb1..adb5c1d30 100644 --- a/include/accept-to-gettext.inc +++ b/include/accept-to-gettext.inc @@ -97,11 +97,14 @@ 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"] == '') ? '*' : + /* Commented out due to problems with IE7, defaulting to the one below... */ + #$acceptChar=(($_SERVER["HTTP_ACCEPT_CHARSET"] == '') ? '*' : + # $_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); - + /* Parse the contents of the Accept-Language header.*/ foreach($alparts as $part) { $part=trim($part);