diff options
author | thomascube <thomas@roundcube.net> | 2006-02-20 23:29:14 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2006-02-20 23:29:14 +0000 |
commit | 13c1afbcbbc71c64f41eb7d764917bb4fea9893f (patch) | |
tree | cea2711d376826e1ab7bb8829ab47e4a81fef7ba /program/steps/addressbook | |
parent | e687ff825dcd93cd8c007420d225917033605252 (diff) |
Fixed some charset bugs
Diffstat (limited to 'program/steps/addressbook')
-rw-r--r-- | program/steps/addressbook/save.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/program/steps/addressbook/save.inc b/program/steps/addressbook/save.inc index 24e375ef7..32a6243fd 100644 --- a/program/steps/addressbook/save.inc +++ b/program/steps/addressbook/save.inc @@ -42,7 +42,9 @@ if ($_POST['_cid']) if (!isset($_POST[$fname])) continue; - $a_write_sql[] = sprintf("%s=%s", $DB->quoteIdentifier($col), $DB->quote(strip_tags($_POST[$fname]))); + $a_write_sql[] = sprintf("%s=%s", + $DB->quoteIdentifier($col), + $DB->quote(rcube_charset_convert(strip_tags($_POST[$fname]), $OUTPUT->get_charset()))); } if (sizeof($a_write_sql)) @@ -164,7 +166,7 @@ else continue; $a_insert_cols[] = $col; - $a_insert_values[] = $DB->quote(strip_tags($_POST[$fname])); + $a_insert_values[] = $DB->quote(rcube_charset_convert(strip_tags($_POST[$fname]), $OUTPUT->get_charset())); } if (sizeof($a_insert_cols)) |