Fix potential XSS vuln in debug output

This commit is contained in:
Marcus Bointon 2017-07-26 20:03:27 +02:00
parent dbbc1397c4
commit d46ba2d186
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24
1 changed files with 1 additions and 1 deletions

View File

@ -4030,7 +4030,7 @@ class phpmailerException extends Exception
*/
public function errorMessage()
{
$errorMsg = '<strong>' . $this->getMessage() . "</strong><br />\n";
$errorMsg = '<strong>' . htmlspecialchars($this->getMessage()) . "</strong><br />\n";
return $errorMsg;
}
}