We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 957fa3a commit fa93239Copy full SHA for fa93239
1 file changed
emhttp/plugins/dynamix/include/SMTPtest.php
@@ -40,7 +40,7 @@ function PsKill($pid) {
40
if (PsExecute("$docroot/webGui/scripts/notify -s 'Unraid SMTP Test' -d 'Test message received!' -i 'alert' -l '/Settings/Notifications' -t")) {
41
$result = exec("tail -3 /var/log/syslog|awk '/sSMTP/ {getline;print}'|cut -d']' -f2|cut -d'(' -f1");
42
$color = strpos($result, 'Sent mail') ? 'green' : 'red';
43
- echo _("Test result")."<span class='$color'>$result</span>";
+ echo _("Test result")."<span class='$color'>".htmlspecialchars($result)."</span>";
44
} else {
45
echo _("Test result")."<span class='red'>: "._('No reply from mail server')."</span>";
46
}
0 commit comments