diff options
| author | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-02-19 18:34:34 +0000 |
|---|---|---|
| committer | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-02-19 18:34:34 +0000 |
| commit | 31abd72c2fa13e53a4d8070513cd0a313d2e5925 (patch) | |
| tree | 6365c81eec3ef9b81612fd8723025c4ba58d189e /roundcubemail/program/include/rcube_shared.inc | |
| parent | 487116d32e66d3fe7e5d4e015db9a03c03b3d1f4 (diff) | |
Applied several patches
git-svn-id: https://svn.roundcube.net/trunk@140 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_shared.inc')
| -rw-r--r-- | roundcubemail/program/include/rcube_shared.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_shared.inc b/roundcubemail/program/include/rcube_shared.inc index fb200de57..79428fa16 100644 --- a/roundcubemail/program/include/rcube_shared.inc +++ b/roundcubemail/program/include/rcube_shared.inc @@ -85,7 +85,15 @@ class rcube_html_page function set_charset($charset) { + global $MBSTRING; $this->charset = $charset; + if ($MBSTRING&&function_exists( "mb_internal_encoding")) + { + if(!@mb_internal_encoding( $charset)) + { + $MBSTRING = FALSE; + } + } } function get_charset() @@ -1386,4 +1394,4 @@ function get_offset_time($offset_str, $factor=1) } -?>
\ No newline at end of file +?> |
