diff --git a/includes/smtp.phpmailer.inc b/includes/smtp.phpmailer.inc index 9a112bd..b497883 100644 --- a/includes/smtp.phpmailer.inc +++ b/includes/smtp.phpmailer.inc @@ -1439,30 +1439,8 @@ class PHPMailer { if (!is_readable($path)) { throw new phpmailerException(t('File Error: Could not open file: !nofile', array('!nofile' => $path)), self::STOP_CONTINUE); } - if (function_exists('get_magic_quotes')) { - function get_magic_quotes() { - return FALSE; - } - } - $magic_quotes = get_magic_quotes_runtime(); - if ($magic_quotes) { - if (version_compare(PHP_VERSION, '5.3.0', '<')) { - set_magic_quotes_runtime(0); - } - else { - ini_set('magic_quotes_runtime', 0); - } - } $file_buffer = file_get_contents($path); $file_buffer = $this->EncodeString($file_buffer, $encoding); - if ($magic_quotes) { - if (version_compare(PHP_VERSION, '5.3.0', '<')) { - set_magic_quotes_runtime($magic_quotes); - } - else { - ini_set('magic_quotes_runtime', $magic_quotes); - } - } return $file_buffer; } catch (Exception $e) { $this->SetError($e->getMessage());