summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5ce8b4c)
raw | patch | inline | side by side (parent: 5ce8b4c)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 Dec 2007 10:43:31 +0000 (10:43 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 Dec 2007 10:43:31 +0000 (10:43 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8009 594d385d-05f5-0310-b6e9-bd551577e9d8
include/accept-to-gettext.inc | patch | blob | history |
index f791e4de8754a8729fc8f49cc69960964db18680..8c19933c45e9790c41a9466c3b09b01d4fa87e26 100644 (file)
/* 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);