Skip to content

Commit

Permalink
Properly quote form validation error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
thomascube committed Feb 10, 2013
1 parent dafb50a commit 63cff24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program/steps/addressbook/save.inc
Expand Up @@ -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;
Expand Down

0 comments on commit 63cff24

Please sign in to comment.