<small class="innerError">
{if $errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
+ {elseif $errorType == 'invalid'}
+ {lang}wcf.user.email.error.invalid{/lang}
{else}
{lang}wcf.acp.user.sendMail.subject.from.{@$errorType}{/lang}
{/if}
use wcf\data\user\UserList;
use wcf\form\AbstractForm;
use wcf\system\clipboard\ClipboardHandler;
+use wcf\system\email\EmailGrammar;
use wcf\system\exception\IllegalLinkException;
use wcf\system\exception\SystemException;
use wcf\system\exception\UserInputException;
if (empty($this->from)) {
throw new UserInputException('from');
}
+ else if (!preg_match('(^'.EmailGrammar::getGrammar('addr-spec').'$)', $this->from)) {
+ throw new UserInputException('from', 'invalid');
+ }
}
/**