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:40:52 +0100 |
commit | d05808a1f93a7e273bb7b676a2f578cabcdef2fa (patch) | |
tree | c953a891a313fb45df60f072712f70f4bdf6c664 /program/steps/addressbook | |
parent | c433a1bfb14a1d343604a6193c9f72898c8835cd (diff) |
Properly quote form validation error messages
Diffstat (limited to 'program/steps/addressbook')
-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 e80f8010b..771cc6fef 100644 --- a/program/steps/addressbook/save.inc +++ b/program/steps/addressbook/save.inc @@ -85,7 +85,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; |