diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2013-02-10 14:37:37 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2013-02-10 14:37:37 +0100 |
commit | 63cff249a8937b65b168f3171b395d83cfae9bd2 (patch) | |
tree | 16875ee2d4e38c8b131a679974e5461a70aabe28 /program/steps/addressbook/save.inc | |
parent | dafb50aa49e13edebdd0c47af861facf4bef12e1 (diff) |
Properly quote form validation error messages
Diffstat (limited to 'program/steps/addressbook/save.inc')
-rw-r--r-- | program/steps/addressbook/save.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/addressbook/save.inc b/program/steps/addressbook/save.inc index 901ea0190..8cab6e817 100644 --- a/program/steps/addressbook/save.inc +++ b/program/steps/addressbook/save.inc @@ -82,7 +82,7 @@ if (empty($a_record['name'])) { // do input checks (delegated to $CONTACTS instance) if (!$CONTACTS->validate($a_record)) { $err = (array)$CONTACTS->get_error(); - $OUTPUT->show_message($err['message'] ? $err['message'] : 'formincomplete', 'warning'); + $OUTPUT->show_message($err['message'] ? Q($err['message']) : 'formincomplete', 'warning'); $GLOBALS['EDIT_RECORD'] = $a_record; // store submitted data to be used in edit form rcmail_overwrite_action($return_action); return; |