From 9e1eb480e4dcb3ecd4bfbce85e3f6c3f1172de9e Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@enhancesoft.com> Date: Wed, 13 May 2015 15:17:47 +0000 Subject: [PATCH] email: maintain entered data on error --- scp/emailtest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scp/emailtest.php b/scp/emailtest.php index 1752bf739..f4eb564c2 100644 --- a/scp/emailtest.php +++ b/scp/emailtest.php @@ -48,11 +48,12 @@ if($_POST){ $errors['err']=__('Error sending email - try again.'); } } -$info=Format::htmlchars(($errors && $_POST)?$_POST:$info); $nav->setTabActive('emails'); $ost->addExtraHeader('<meta name="tip-namespace" content="emails.diagnostic" />', "$('#content').data('tipNamespace', '".$tip_namespace."');"); require(STAFFINC_DIR.'header.inc.php'); + +$info=Format::htmlchars(($errors && $_POST)?$_POST:$info); ?> <form action="emailtest.php" method="post" id="save"> <?php csrf_token(); ?> -- GitLab