From 43d8d5079934686ad483d7db6f00788ac08086fb Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 2 Sep 2018 07:46:55 +0000 Subject: [PATCH] Again a user found a notice ... --- notifyall/notifyall.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notifyall/notifyall.php b/notifyall/notifyall.php index 408e74a3..ddadc3b6 100644 --- a/notifyall/notifyall.php +++ b/notifyall/notifyall.php @@ -106,8 +106,8 @@ function notifyall_content(&$a) $o = replace_macros(get_markup_template('notifyall_form.tpl', 'addon/notifyall/'), [ '$title' => $title, - '$text' => htmlspecialchars($_REQUEST['text']), - '$subject' => ['subject',L10n::t('Message subject'),$_REQUEST['subject'],''], + '$text' => htmlspecialchars(defaults($_REQUEST, 'text', '')), + '$subject' => ['subject', L10n::t('Message subject'), defaults($_REQUEST, 'subject', ''),''], '$test' => ['test',L10n::t('Test mode (only send to administrator)'), 0,''], '$submit' => L10n::t('Submit') ]); -- 2.39.5