fix error in PHPMailer
parent
9cb728d19a
commit
7453c6f41a
|
@ -2691,10 +2691,10 @@ class PHPMailer
|
||||||
if (!is_readable($path)) {
|
if (!is_readable($path)) {
|
||||||
throw new phpmailerException($this->lang('file_open') . $path, self::STOP_CONTINUE);
|
throw new phpmailerException($this->lang('file_open') . $path, self::STOP_CONTINUE);
|
||||||
}
|
}
|
||||||
$magic_quotes = get_magic_quotes_runtime();
|
$magic_quotes = false;
|
||||||
if ($magic_quotes) {
|
if ($magic_quotes) {
|
||||||
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
|
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
|
||||||
set_magic_quotes_runtime(false);
|
//set_magic_quotes_runtime(false);
|
||||||
} else {
|
} else {
|
||||||
//Doesn't exist in PHP 5.4, but we don't need to check because
|
//Doesn't exist in PHP 5.4, but we don't need to check because
|
||||||
//get_magic_quotes_runtime always returns false in 5.4+
|
//get_magic_quotes_runtime always returns false in 5.4+
|
||||||
|
|
Loading…
Reference in New Issue