PHPMailer\PHPMailer\PHPMailer::isShellSafe
Fix CVE-2016-10033 and CVE-2016-10045 by disallowing potentially unsafe shell characters.
Note that escapeshellarg and escapeshellcmd are inadequate for our purposes, especially on Windows.
Signature
protected function isShellSafe(string
$string )
Parameters
$string
— string- The string to be validated
Returns
- bool