Fix potential XSS vuln in debug output
This commit is contained in:
parent
dbbc1397c4
commit
d46ba2d186
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue