Merge pull request #729 from annando/and-again

Again a user found a notice ...
pull/730/head
Tobias Diekershoff 2018-09-02 14:47:06 +02:00 committed by GitHub
commit f822619ce1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -106,8 +106,8 @@ function notifyall_content(&$a)
$o = replace_macros(get_markup_template('notifyall_form.tpl', 'addon/notifyall/'), [ $o = replace_macros(get_markup_template('notifyall_form.tpl', 'addon/notifyall/'), [
'$title' => $title, '$title' => $title,
'$text' => htmlspecialchars($_REQUEST['text']), '$text' => htmlspecialchars(defaults($_REQUEST, 'text', '')),
'$subject' => ['subject',L10n::t('Message subject'),$_REQUEST['subject'],''], '$subject' => ['subject', L10n::t('Message subject'), defaults($_REQUEST, 'subject', ''),''],
'$test' => ['test',L10n::t('Test mode (only send to administrator)'), 0,''], '$test' => ['test',L10n::t('Test mode (only send to administrator)'), 0,''],
'$submit' => L10n::t('Submit') '$submit' => L10n::t('Submit')
]); ]);