diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-12-11 16:53:54 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-12-11 16:53:54 +0000 |
| commit | 003b1d193f096c69d1fe92c916bf2543f829e7f2 (patch) | |
| tree | 0d5b656117d4f78ec25e31e8b00defc2110dc115 /roundcubemail/program/steps | |
| parent | dfba922026ab5fdce33d84ae1be28b684ca63d38 (diff) | |
- use proper unicode cleanup for JSON, fixes #1486356
git-svn-id: https://svn.roundcube.net/trunk@3175 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/mail/compose.inc | 2 | ||||
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 5 | ||||
| -rw-r--r-- | roundcubemail/program/steps/mail/headers.inc | 5 |
3 files changed, 2 insertions, 10 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc index 842f28c60..560142b90 100644 --- a/roundcubemail/program/steps/mail/compose.inc +++ b/roundcubemail/program/steps/mail/compose.inc @@ -505,7 +505,7 @@ function rcmail_compose_body($attrib) JQ(Q(rcube_label('close'))), JQ(Q(rcube_label('revertto'))), JQ(Q(rcube_label('nospellerrors'))), - json_encode($spellcheck_langs), + json_serialize($spellcheck_langs), $lang, $attrib['id'], JS_OBJECT_NAME), 'foot'); diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 94f455a1b..b874817ff 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -458,9 +458,6 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE, $replace=TRUE) if ($header->flagged) $a_msg_flags['flagged'] = 1; - if ($browser->ie) - $a_msg_cols = rc_utf8_clean($a_msg_cols); - $OUTPUT->command('add_message_row', $header->uid, $a_msg_cols, @@ -522,7 +519,7 @@ function rcmail_quota_display($attrib) if (is_array($quota)) { $OUTPUT->add_script('$(document).ready(function(){ - rcmail.set_quota('.json_encode($quota).')});', 'foot'); + rcmail.set_quota('.json_serialize($quota).')});', 'foot'); $quota = ''; } diff --git a/roundcubemail/program/steps/mail/headers.inc b/roundcubemail/program/steps/mail/headers.inc index 4e3f969bd..653fb9647 100644 --- a/roundcubemail/program/steps/mail/headers.inc +++ b/roundcubemail/program/steps/mail/headers.inc @@ -24,11 +24,6 @@ if ($uid = get_input_value('_uid', RCUBE_INPUT_POST)) if ($source) { - $browser = new rcube_browser; - - if ($browser->ie) - $source = rc_utf8_clean($source); - $source = htmlspecialchars(trim($source)); $source = preg_replace('/\t/', ' ', $source); $source = preg_replace('/^([a-z0-9_:-]+)/im', '<font class="bold">'.'\1'.'</font>', $source); |
