summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-rw-r--r--program/include/main.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 490217015..d2f28cdce 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -380,8 +380,8 @@ function rcube_parse_charset($charset)
}
// handle broken charset names e.g. WINDOWS-1250HTTP-EQUIVCONTENT-TYPE
- if (preg_match('/WINDOWS([0-9]+)/', $str, $m)) {
- return 'WINDOWS-' . $m[1];
+ if (preg_match('/(WIN|WINDOWS)([0-9]+)/', $str, $m)) {
+ return 'WINDOWS-' . $m[2];
}
return $charset;