Skip to content

Commit

Permalink
Don't allow empty From: address if verifying identities.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jun 10, 2015
1 parent 3d813c5 commit 548fc91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions framework/Core/lib/Horde/Core/Prefs/Ui.php
Expand Up @@ -995,6 +995,9 @@ protected function _identitiesUpdate()

$new_from = $identity->getValue('from_addr');
if (!empty($conf['user']['verify_from_addr']) &&
empty($new_from)) {
$notification->push(Horde_Core_Translation::t("The e-mail field cannot be empty."), 'horde.error');
} elseif (!empty($conf['user']['verify_from_addr']) &&
($current_from != $new_from) &&
!in_array($new_from, $from_addresses)) {
try {
Expand Down

0 comments on commit 548fc91

Please sign in to comment.