Skip to content

Commit

Permalink
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Charset
Browse files Browse the repository at this point in the history
Accept-Charset header no longer widely used.
  • Loading branch information
wkpark committed Nov 4, 2022
1 parent e522e6d commit 4fd6283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monisetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ function _t($text) {
}

if ($update == _t('Update') || $update == _t("Merge settings")) {
if ($rawconfig['charset'] && $rawconfig['sitename']) {
if ($rawconfig['charset'] && $rawconfig['sitename'] && !empty($_SERVER['HTTP_ACCEPT_CHARSET'])) {
if (function_exists('iconv')) {
$ncharset=strtoupper($rawconfig['charset']);

Expand Down

0 comments on commit 4fd6283

Please sign in to comment.