diff --git a/setup/email.test.php b/setup/email.test.php index 171126eb9..18f386483 100644 --- a/setup/email.test.php +++ b/setup/email.test.php @@ -204,7 +204,7 @@ function DisplayStep2(SetupPage $oP, $sFrom, $sTo) //$sNextOperation = 'step3'; $oP->add("

iTop configuration wizard

\n"); $oP->add("

Step 2: send an email

\n"); - $oP->add("

Sending an email to '$sTo'... (From: '$sFrom')

\n"); + $oP->add("

Sending an email to '".htmlentities($sTo, ENT_QUOTES, 'utf-8')."'... (From: '".htmlentities($sFrom, ENT_QUOTES, 'utf-8')."')

\n"); $oP->add("
\n"); $oEmail = new Email(); @@ -236,7 +236,7 @@ function DisplayStep2(SetupPage $oP, $sFrom, $sTo) case EMAIL_SEND_ERROR: foreach ($aIssues as $sError) { - $oP->error($sError); + $oP->error(htmlentities($sError, ENT_QUOTES, 'utf-8')); } $oP->add("\n"); break; @@ -279,7 +279,7 @@ try } catch(Exception $e) { - $oP->error("Error: '".$e->getMessage()."'"); + $oP->error("Error: '".htmlentities($e->getMessage(), ENT_QUOTES, 'utf-8')."'"); } catch(CoreException $e) {